The metadata key is exactly like the placeholder in the template, no more, no less, i.e. `lang: ja`. This is true generally, and you can easily define your own variables in your own templates. That wouldn't work if Pandoc meddled with the variable names so that the names used in metadata and those used in templates were somehow different.


Den tis 29 okt. 2019 15:40Patrick Kenny <ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Going from markdown to epub3, how do I set the language on the HTML tag in the epub?

For epub3, the template looks like this:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ xml:lang="$lang$"$endif$>

In my YAML metadata block, I have this:

language: ja

This sets the language in content.opf:

    <dc:language>ja</dc:language>

But it doesn't set the language on the HTML tag.

I also tried adding

language: ja

to the metadata, but this didn't change the value on the HTML tag, either.

--
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/c500692e-7472-40fa-991e-378b7ab173d5%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/CAFC_yuTob%3DpKyjGrQ3tT8SNp%2Bo7E2hbpz3MZRqy_52%3Dmfy5wJw%40mail.gmail.com.