Closed Didayolo closed 1 year ago
I confirm that the HTML inside .md
files is not interpreted either.
We have this in utils.js
:
function sanitize_HTML(input, extra_settings) {
extra_settings = extra_settings || {}
input = input || ''
extra_settings.FORBID_TAGS = _.union(extra_settings.FORBID_TAGS, ['style'])
extra_settings.FORBID_ATTR = _.union(extra_settings.FORBID_ATTR, ['style'])
return DOMPurify.sanitize(input, extra_settings)
}
function render_markdown(input, extra_settings) {
extra_settings = extra_settings || {}
input = input || ''
if(EasyMDE.prototype.options === undefined) {
EasyMDE.prototype.options = {
renderingConfig: easyMDE_rendering_config
}
}
return sanitize_HTML(EasyMDE.prototype.markdown(input), extra_settings)
}
HTML pages are not well rendered by Codabech. Only markdown works.
Related issues:
589
283
Example: