• 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
..
admin Loading commit data...
common Loading commit data...
editor Loading commit data...
profile Loading commit data...
admin.vue Loading commit data...
comments.vue Loading commit data...
editor.vue Loading commit data...
history.vue Loading commit data...
login.vue Loading commit data...
new-page.vue Loading commit data...
not-found.vue Loading commit data...
profile.vue Loading commit data...
register.vue Loading commit data...
setup.vue Loading commit data...
source.vue Loading commit data...
tags.vue Loading commit data...
unauthorized.vue Loading commit data...
welcome.vue Loading commit data...