• Edoardo Morassutto's avatar
    fix: inline math interpreted as attributes (#2645) · a37a73de
    Edoardo Morassutto authored
    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
    a37a73de
Name
Last commit
Last update
..
components Loading commit data...
fonts Loading commit data...
graph Loading commit data...
helpers Loading commit data...
libs Loading commit data...
modules Loading commit data...
polyfills Loading commit data...
scss Loading commit data...
static Loading commit data...
store Loading commit data...
themes/default Loading commit data...
.modernizrrc.js Loading commit data...
client-app.js Loading commit data...
client-setup.js Loading commit data...
index-app.js Loading commit data...
index-legacy.js Loading commit data...
index-setup.js Loading commit data...