wikijs-fork/client/components/editor
Edoardo Morassutto a37a73dede
fix: inline math interpreted as attributes (#2645)
When using inline math ($e^{-x^2}$) the curly braces are interpreted as
attributes by markdown-it-attrs. Since most of the times they are not
valid attributes they simply get removed.

This patch escapes the curly braces (the default attribute delimiter),
fixing the KaTeX rendering errors.

It would be nice to simply skip that rule for `katex_inline` block types
but as far as I know markdown-it-attrs doesn't have such an option.

Fixes #1581
2020-11-01 13:00:39 -05:00
..
api
ckeditor
common
markdown
editor-api.vue
editor-ckeditor.vue
editor-code.vue
editor-markdown.vue
editor-modal-blocks.vue
editor-modal-conflict.vue
editor-modal-drawio.vue
editor-modal-editorselect.vue
editor-modal-media.vue
editor-modal-properties.vue
editor-modal-unsaved.vue
editor-redirect.vue