mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-03-27 22:49:31 +08:00
fix(compiler): prevent render of html code in paragraph, fixed #663
This commit is contained in:
@@ -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>`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user