lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

square brackets cause problems

emanuele-em opened this issue · comments

I don't know why but when I write normal square brackets it does not render the entire math inline section:

In the last case, if $\texttt{x}[a]=\texttt{y}[b]$,
In the last case, if $\texttt{x}(a)=\texttt{y}(b)$,

The result is:
image

Hi @emanuele-em, could you provide your OS information and how you installed mdBook-KaTeX? I cannot reproduce this.

Thank you for your super rapid answer 🚀!

book.toml

[preprocessor.katex]
after = ["links"]

Apple M2 with MacOS Sonoma, but the problem was present also in MacOS Ventura

How did you install mdBook-KaTeX?

with cargo following the readme

Could you build this debug branch and tell me the output when run?
The commands to do that look like:

git clone git@github.com:lzanini/mdbook-katex.git
git switch debug-rendering
cargo b

Then, please run this mdBook-KaTeX you just built by something like:

export PATH=YOUR_MDBOOK_KATEX_REPO/target/debug:$PATH
mdbook build

Closing due to inactivity. Please respond if the problem persisted.