You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instance, this (from Notion, codeblock in a toggle) breaks the render very badly:
The culprit is here (the blocks html parser):
_mixedHTML(mixedHtml: string){returnmixedHtml.replaceAll(/[^<>]+?(?=<\/)/g,(match)=>{// Must trim or Marked classifies text preceded by tabs as indented code.consttokens=marked.lexer(_.trim(match),this.markedOptions)returnmarked.parser(tokens,this.markedOptions)})
We could fix our regex or add a condition to avoid anything inside of a set of double quotes. This wouldn't be mixed html, but would just be a string representation.
The text was updated successfully, but these errors were encountered:
For instance, this (from Notion, codeblock in a toggle) breaks the render very badly:
The culprit is here (the blocks html parser):
We could fix our regex or add a condition to avoid anything inside of a set of double quotes. This wouldn't be mixed html, but would just be a string representation.
The text was updated successfully, but these errors were encountered: