I figured it out eventually. Now I write formulas like this: `$...$` and ``` $$ ... $$ ``` After that i remove
/ tags from .html with my own .py script.

вторник, 7 сентября 2021 г. в 20:50:51 UTC+5, BPJ: 

> It works here:
>
>
> https://pandoc.org/try/?text=%60%60%60%60%60%60%7B%3Dhtml%7D%0A%24%2410%5E2%24%24%0A%60%60%60%60%60%60%0A%0A%60%2410%5E2%24%60%7B%3Dhtml%7D&from=markdown&to=html5&standalone=0
>
> What is your command line/defaults file?
>
> Den tis 7 sep. 2021 15:14Danil Braun  skrev:
>
>> > You can probably use Pandoc's raw block/raw inline syntax:
>>
>> It doesn't work. I still generates code like this:
>>
>> Tlen(k) = 5 + 
>> ...
>>
>> вторник, 7 сентября 2021 г. в 14:50:59 UTC+5, BP: 
>>
>>> Den tis 7 sep. 2021 07:43Danil Braun  skrev:
>>>
>>>>
>>>> *I don't want pandoc to touch them in any way*
>>>
>>>
>>> What does Pandoc with the --katex option do which you are unhappy with?
>>>
>>>
>>>> I have set the base URL for the KaTeX library and what did I get? This 
>>>> --- https://braun.guru/20210905170336.html
>>>>
>>>> ```
>>>> <!DOCTYPE html>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> katex CDN by jsDelivr - A free, fast, and reliable Open Source CDN
>>>> 
>>>>