Closed nicolas-tesla-x closed 2 months ago
@nicolas-tesla-x blob:html
is considered an invalid URL scheme and does not pass the Sanitize check.
// URL schemes we permit
allowedSchemes: ['http', 'https', 'ftp', 'mailto'],
For this to work, need to disable the Sanitize check.
This can be done by setting htmlSanitize: false
window.markdownToHTML(s, {htmlTags: true, htmlSanitize: false})
// URL schemes we permit allowedSchemes: ['http', 'https', 'ftp', 'mailto'],
For this to work, need to disable the Sanitize check. This can be done by setting
htmlSanitize: false
window.markdownToHTML(s, {htmlTags: true, htmlSanitize: false})
![]()
@OlgaRedozubova thank you! It works!
As shown, when I set the src attribute of img to Object URL, the src attribute is lost