OpenUserJS.org icon indicating copy to clipboard operation
OpenUserJS.org copied to clipboard

*marked* issues with HTML

Open Martii opened this issue 5 years ago • 1 comments

See on OUJS pro at Markdown doesn't render kbd element correctly

Affected tag(s):

  • kbd
  • strong
  • code
  • ... (Probably more)

Generating text element after tags i.e. <tag></tag>Text instead of <tag>Text</tag>

Ref(s):

Martii avatar Nov 09 '20 01:11 Martii

Tables are broken in marked@3.0.0 atm.


Work-around available at https://github.com/markedjs/marked/issues/2217#issuecomment-999571715

Martii avatar Aug 18 '21 21:08 Martii

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));

Martii avatar Nov 09 '23 21:11 Martii