wikijs-fork/client
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
..
components fix: inline math interpreted as attributes (#2645) 2020-11-01 13:00:39 -05:00
fonts refactor: deps update + 2FA setup + verify 2020-08-22 19:37:49 -04:00
graph feat: new login experience (#2139) 2020-07-03 19:36:33 -04:00
helpers fix: setup issues + webpack improvements 2018-09-29 15:39:09 -04:00
libs feat: new login experience (#2139) 2020-07-03 19:36:33 -04:00
modules fix: i18n xhr for 5 lang codes 2019-09-27 14:59:53 -04:00
polyfills refactor: client structure + editor preview logic 2018-02-24 17:35:56 -05:00
scss refactor: deps update + 2FA setup + verify 2020-08-22 19:37:49 -04:00
static feat: rocket.chat auth module 2020-09-20 20:15:51 -04:00
store feat: markdown editor process markers 2020-07-12 19:20:10 -04:00
themes/default fix: tabset tabs can't be scrolled (#2442) 2020-09-26 19:07:17 -04:00
.modernizrrc.js feat: new login experience (#2139) 2020-07-03 19:36:33 -04:00
client-app.js refactor: deps update + 2FA setup + verify 2020-08-22 19:37:49 -04:00
client-setup.js misc: deps cleanup + form validation fixes 2019-09-15 23:20:40 -04:00
index-app.js feat: new login experience (#2139) 2020-07-03 19:36:33 -04:00
index-legacy.js refactor: deps update + 2FA setup + verify 2020-08-22 19:37:49 -04:00
index-setup.js fix: theme loading optimizations 2020-04-24 17:40:41 -04:00