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 feat: editor save conflict localization 2020-03-22 18:58:27 -04:00
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 feat: assets move + comments migration + admin users UI 2020-05-21 00:20:57 -04:00
editor-ckeditor.vue fix: auth strategy dependent username label 2020-07-19 13:20:43 -04:00
editor-code.vue feat: editor save conflict localization 2020-03-22 18:58:27 -04:00
editor-markdown.vue fix: markdown editor URL autocompletion (#2452) 2020-09-19 17:55:38 -04:00
editor-modal-blocks.vue feat: redirect editor UI (wip) 2020-05-10 18:43:45 -04:00
editor-modal-conflict.vue feat: editor save conflict localization 2020-03-22 18:58:27 -04:00
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 fix: editor-modal-media action button (#1736) 2020-04-23 19:18:53 -04:00
editor-modal-properties.vue fix: editor saved state 2020-06-21 01:04:36 -04:00
editor-modal-unsaved.vue feat: editor save conflict localization 2020-03-22 18:58:27 -04:00
editor-redirect.vue feat: redirect editor UI (wip) 2020-05-10 18:43:45 -04:00