mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
iss #809 normalize text only in img tag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user