lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.
MIT License
195 stars 34 forks source link

Handle delimiters starting with backticks #112

Closed josebama closed 3 months ago

josebama commented 3 months ago

Even if delimiters start with backticks, katex shouldn't render inside code blocks or inline code.

Fixes #111

SichangHe commented 3 months ago

This PR does expose the problem in the code: a missing fall-through in the match expression.

SichangHe commented 3 months ago

@josebama, since you do not allow modifying your branch, I opened another branch and #113 that incorporates your changes.

Thank you for your contributions!