Pandoc Markdown: ignore text in PDF (but include in HTML) Updated?

后端 未结 2 1797
醉话见心
醉话见心 2020-12-19 15:30

This question of how to include text that will appear in html but not pdf has been answered twice (LaTeX multicolumn block in Pandoc markdown and Pandoc markdown: Omit text

2条回答
  •  自闭症患者
    2020-12-19 16:15

    I found an answer: add the -native_divs extension.

    This way:

    $ pandoc essai.md --from=markdown-markdown_in_html_blocks-native_divs -t latex
    My text.
    
    other text
    

    My understanding is that pandoc has started interpreting

    items as "native" elements, i.e. represented in the AST, which causes the interesting side effect that a

    is added in html. This behaviour needs to be deactivated in order to obtain the desired effect.

    If someone has a better solution or a better explanation, please let me know.

提交回复
热议问题