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 <nightmareaftercare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
> You can probably use Pandoc's raw block/raw inline syntax:

It doesn't work. I still generates code like this:

<span class="math display"><em>T</em><sub>len</sub>(<em>k</em>) = 5 + ...</span>

вторник, 7 сентября 2021 г. в 14:50:59 UTC+5, BP:
Den tis 7 sep. 2021 07:43Danil Braun <nightmare...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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

```
&lt;!DOCTYPE html&gt;
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="katex CDN by jsDelivr - A free, fast, and reliable Open Source CDN for npm and GitHub">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
katex CDN by jsDelivr - A free, fast, and reliable Open Source CDN
</title>
<style>
            body {
                font: 15px/1.4em Arial, "Helvetica Neue", Helvetica, sans-serif;
                margin: 0;
                padding: 0;
                background-color: #f2f2f2;
            }

            .container {
                max-width: 960px;
                margin: 0 auto 15px;
                padding: 10px 15px;
                background-color: #fff;
            }

            .badge {
                float: right;
            }
...
```

And again these `<span class="math inline">` tags... 

I just want pandoc not to touch the formulas that I put between the dollar signs, I add links to the KaTeX files manually in the template file which I specify with `--template` key.

You can probably use Pandoc's raw block/raw inline syntax:

Raw block (the backticks are part of the syntax):

```{=html}
$$...$$
```

Raw inline (again the backticks are part of the syntax):

`$...$`{=html}

"Code" marked with {=FORMAT}, where FORMAT is a Pandoc output format name as you would pass it to the --to/--write option will be passed through verbatim to that output format and ignored in other output formats.




понедельник, 6 сентября 2021 г. в 23:36:37 UTC+5, BP:

Den mån 6 sep. 2021 15:59Danil Braun <nightmare...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
I want to write LaTeX formulas in .md file, but I don't want pandoc to touch them in any way, because KaTeX .js script has been added to the .html file, and this script will draw these formulas. How do you get pandoc to do this?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/86de2391-0410-4092-800a-f7f2155c01c0n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2722ac24-c8ff-4b52-9ae5-a8571f627f6an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhB6VDjzfe4zbk%2BiL5W7cHmMbbjCOw8M7rdh3QimyF%3DF1w%40mail.gmail.com.