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
I propose that the default integration make use of textContent of the target element instead of the innerHTML which contains html tags.
Why
Currently, bloggers need to choose between syntax highlighting mermaid diagrams codes or rendering the diagrams. They can't easily have both unless they do some additional customisations.
The text was updated successfully, but these errors were encountered:
A code snippet contains syntax highlighting, it currently will fail to render with the default integration.
Example: https://codepen.io/chrisirhc/pen/bNGRvZj
I propose that the default integration make use of textContent of the target element instead of the innerHTML which contains html tags.
Why
Currently, bloggers need to choose between syntax highlighting mermaid diagrams codes or rendering the diagrams. They can't easily have both unless they do some additional customisations.
The text was updated successfully, but these errors were encountered: