public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Hoàng-Ân Lê" <lhoangan.nl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
Cc: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Mathjax and TOC does not work with HTML custom lua writer
Date: Thu, 24 Mar 2022 20:26:20 +0100	[thread overview]
Message-ID: <CAKY_PKtOFRs085OJCCaAqjHyjo7BPSstUojaxGqE8vC3HFNrhg@mail.gmail.com> (raw)
In-Reply-To: <m2zglfjj1b.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>

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

Well, I trust in the "that is very similar to that of pandoc's HTML
writer". So I was confused when it's not that similar. I actually had to
come up with all the elements that I thought could be different and went on
to manually check the generated code one by  one.

 Could you elaborate how TOC and Mathjax could be done?

On Thu, 24 Mar 2022 at 19:35, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:

>
> sample.lua is just what it says...an example.
> You'll need to construct a TOC manually in Lua if you want one.
> And you'll have to modify sample.lua to produce the math output
> you want.
>
>
> For small changes a Lua filter is probably what you want.
>
> AustinLe <lhoangan.nl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I was trying to generate the same HTML from Markdown with as one with
> `-s
> > -t html` using the default `sample.lua` writer and `default.html5` but
> > found that the table of contents is missing and math formulas does not
> > render correctly. This is the command I was using:
> > ```
> > pandoc --standalone --toc --mathjax --citeproc -f markdown
> > --template=default.html5 -t sample.lua my-markdown.md -o index.html
> > --variable document-css --variable highlighting-css --variable
> > displaymath-css --variable csl-css --variable csl-entry-spacing
> > ```
> > Pandoc version:
> > ```
> >> pandoc -v
> > pandoc 2.17.1.1
> > Compiled with pandoc-types 1.22.1, texmath 0.12.4, skylighting 0.12.2,
> > citeproc 0.6.0.1, ipynb 0.2
> > User data directory: /share/home/leh/.pandoc
> > Copyright (C) 2006-2022 John MacFarlane. Web:  https://pandoc.org
> > This is free software; see the source for copying conditions. There is no
> > warranty, not even for merchantability or fitness for a particular
> purpose.
> > ```
> >
> > --
> > 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/b5250fc3-b431-4d07-9dcb-bb81ca43f825n%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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAKY_PKtOFRs085OJCCaAqjHyjo7BPSstUojaxGqE8vC3HFNrhg%40mail.gmail.com.

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

  parent reply	other threads:[~2022-03-24 19:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24 10:54 AustinLe
     [not found] ` <b5250fc3-b431-4d07-9dcb-bb81ca43f825n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-24 18:35   ` John MacFarlane
     [not found]     ` <m2zglfjj1b.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-03-24 19:26       ` Hoàng-Ân Lê [this message]
     [not found]         ` <CAKY_PKtOFRs085OJCCaAqjHyjo7BPSstUojaxGqE8vC3HFNrhg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-03-25  2:30           ` John MacFarlane
     [not found]             ` <m2fsn6ix1n.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-03-25  9:38               ` William Lupton

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=CAKY_PKtOFRs085OJCCaAqjHyjo7BPSstUojaxGqE8vC3HFNrhg@mail.gmail.com \
    --to=lhoangan.nl-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=jgm-TVLZxgkOlNX2fBVCVOL8/A@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).