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 fix: inline math interpreted as attributes (#2645) 2020-11-01 13:00:39 -05:00
markdown feat: code folding + diagram folding 2020-07-12 14:32:53 -04:00
editor-api.vue
editor-ckeditor.vue fix: auth strategy dependent username label 2020-07-19 13:20:43 -04:00
editor-code.vue
editor-markdown.vue fix: markdown editor URL autocompletion (#2452) 2020-09-19 17:55:38 -04:00
editor-modal-blocks.vue
editor-modal-conflict.vue
editor-modal-drawio.vue feat: edit existing diagram data 2020-07-12 19:32:17 -04:00
editor-modal-editorselect.vue feat: comments UI improvements 2020-05-23 18:49:10 -04:00
editor-modal-media.vue
editor-modal-properties.vue fix: editor saved state 2020-06-21 01:04:36 -04:00
editor-modal-unsaved.vue
editor-redirect.vue