mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix(compiler): prevent render of html code in paragraph, fixed #663
This commit is contained in:
parent
4f588e0af4
commit
d35059dd0b
@ -261,6 +261,8 @@ export class Compiler {
|
||||
result = helperTpl('tip', text)
|
||||
} else if (/^\?>/.test(text)) {
|
||||
result = helperTpl('warn', text)
|
||||
} else if (/^</.test(text)) {
|
||||
return text
|
||||
} else {
|
||||
result = `<p>${text}</p>`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user