# Customize markdown processor

**URL:** <https://discourse.gohugo.io/t/customize-markdown-processor/2836>\
**Category:** support\
**Tags:** typesetting\
**Created:** [March 4, 2016, 12:24pm UTC](https://discourse.gohugo.io/t/customize-markdown-processor/2836 "2016-03-04T12:24:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![invkrh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/invkrh/32/1140_2.png) [@invkrh](https://discourse.gohugo.io/u/invkrh)\
**Post date:** [March 4, 2016, 12:24pm UTC](https://discourse.gohugo.io/t/customize-markdown-processor/2836/1 "2016-03-04T12:24:49Z")

</div>

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:  

> **[Supported Content Formats](https://gohugo.io/content-management/formats/)**
>
> Markdown and Emacs Org-Mode have native support, and additional formats (e.g. Asciidoc) come via external helpers.

(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 `&amp;` 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.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 4, 2016, 12:56pm UTC](https://discourse.gohugo.io/t/customize-markdown-processor/2836/2 "2016-03-04T12:56:53Z")

</div>

> [@invkrh](#):
>
> 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.

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

---

<div class="post-metadata">

**Author:** ![jakeoung](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@jakeoung](https://discourse.gohugo.io/u/jakeoung)\
**Post date:** [January 26, 2018, 5:16am UTC](https://discourse.gohugo.io/t/customize-markdown-processor/2836/3 "2018-01-26T05:16:07Z")

</div>

DId you solve the problem? I have similar problem.
