public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Markdown to HTML without (La)TeX
Date: Tue, 7 Sep 2021 17:50:31 +0200	[thread overview]
Message-ID: <CADAJKhB6VDjzfe4zbk+iL5W7cHmMbbjCOw8M7rdh3QimyF=F1w@mail.gmail.com> (raw)
In-Reply-To: <2722ac24-c8ff-4b52-9ae5-a8571f627f6an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 5520 bytes --]

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:
>>>
>>>> https://pandoc.org/MANUAL.html#option--katex
>>>>
>>>> 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/pandoc-discuss/86de2391-0410-4092-800a-f7f2155c01c0n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/pandoc-discuss/86de2391-0410-4092-800a-f7f2155c01c0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pandoc-discuss/0e83bf50-d51d-4a95-8c89-6371b5c22dbfn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/pandoc-discuss/0e83bf50-d51d-4a95-8c89-6371b5c22dbfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/2722ac24-c8ff-4b52-9ae5-a8571f627f6an%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/2722ac24-c8ff-4b52-9ae5-a8571f627f6an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #2: Type: text/html, Size: 9671 bytes --]

  parent reply	other threads:[~2021-09-07 15:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 13:58 Danil Braun
     [not found] ` <86de2391-0410-4092-800a-f7f2155c01c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-09-06 18:36   ` BPJ
     [not found]     ` <CADAJKhCW1MfvGAUfeH+Q6GWmKaZWVM8rojZx2Nz_=phi4=qrMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-09-07  5:42       ` Danil Braun
     [not found]         ` <0e83bf50-d51d-4a95-8c89-6371b5c22dbfn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-09-07  9:50           ` BPJ
     [not found]             ` <CADAJKhDYbTbMj5qOY19SZ2__WCTMBdH+n+MKckh=UuV=fgi9Xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-09-07 12:53               ` Danil Braun
2021-09-07 13:13               ` Danil Braun
     [not found]                 ` <2722ac24-c8ff-4b52-9ae5-a8571f627f6an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-09-07 15:50                   ` BPJ [this message]
     [not found]                     ` <CADAJKhB6VDjzfe4zbk+iL5W7cHmMbbjCOw8M7rdh3QimyF=F1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-09-08 12:08                       ` Danil Braun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADAJKhB6VDjzfe4zbk+iL5W7cHmMbbjCOw8M7rdh3QimyF=F1w@mail.gmail.com' \
    --to=bpj-j3h7gcxpsitlodktgw+v6w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).