Customize markdown processor

I am integrating Katex in my blog.

Some problem with blackfriday:

I have to put the following code into a

to make it work, as explained in:

(mathjar and katex are similar to each other)

$$
\begin{array}{clc}
(3, 4) & \rightarrow f(x) = (3x + 4) % 12 \
x = 0, 1, 2 … 11 & \rightarrow f(x) = 4, 7, 10, 1, 4, 7, 10, 1, 4, 7, 10, 1
\end{array}
$$

It is because & is interpreted as & which can not be recognized by Katex.

I need to change makedown processor to automatically render a $$…$$ formule block into a

, then & is really a &. No more escape is needed here.

I am not sure whether the above is possible, since it seems that Hugo does not allow blackberry configuration, not even mention change rendering the markdown processor.

Any help is highly appreciated.

1 Like

No, but we do allow some Blackfriday configuration. Have a look in the doc. Not sure if it helps your case, though …

DId you solve the problem? I have similar problem.