1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

iss #809 normalize text only in img tag

This commit is contained in:
asmsuechan
2017-08-19 09:25:45 +09:00
parent 22929d84fc
commit a3a55a8bb4
2 changed files with 9 additions and 3 deletions

View File

@@ -165,12 +165,17 @@ function strip (input) {
return output
}
function normalizeLinkText (linkText) {
return md.normalizeLinkText(linkText)
}
const markdown = {
render: function markdown (content) {
if (!_.isString(content)) content = ''
const renderedContent = md.render(content)
return md.normalizeLinkText(renderedContent)
return renderedContent
},
strip
strip,
normalizeLinkText
}
export default markdown