• 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
.devcontainer Loading commit data...
.github Loading commit data...
.runme Loading commit data...
.vscode Loading commit data...
client Loading commit data...
dev Loading commit data...
server Loading commit data...
.babelrc Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.npmrc Loading commit data...
.nvmrc Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
azure-pipelines.yml Loading commit data...
config.sample.yml Loading commit data...
cypress.json Loading commit data...
package.json Loading commit data...
sonar-project.properties Loading commit data...
yarn.lock Loading commit data...