OpenUserJS.org
OpenUserJS.org copied to clipboard
*marked* issues with HTML
See on OUJS pro at Markdown doesn't render kbd element correctly
Affected tag(s):
kbdstrongcode- ... (Probably more)
Generating text element after tags i.e. <tag></tag>Text instead of <tag>Text</tag>
Ref(s):
- markedjs/marked#1745
- markedjs/marked/issues/1745#issuecomment-673876254 (Possible change ref tokenizer)
Tables are broken in marked@3.0.0 atm.
Work-around available at https://github.com/markedjs/marked/issues/2217#issuecomment-999571715
Btw....
if (aType === 'html') {
arguments[1] = !!'block'; // This is force implementing marked#2768 addition... doesn't appear to work because it's already split e.g. <kbd> + string + </kbd>
}
// Sanitize first to close any tags
var sanitized = sanitize(marked.Renderer.prototype[aType].apply(renderer, arguments));