Pandoc markdown: Omit text in PDF version but include in HTML version

前端 未结 1 1513
臣服心动
臣服心动 2021-01-14 10:11

I\'m trying to maintain two versions of my CV, one with lots of gloss and one that\'s more conventional. The glossy version will be HTML. I have it working with images (e.

相关标签:
1条回答
  • 2021-01-14 10:34

    With recent versions of pandoc, you can disable the extension markdown_in_html_blocks:

    pandoc -f markdown-markdown_in_html_blocks
    

    Then the contents of <div>...</div> tags will be ignored in LaTeX/PDF output, but will still appear in HTML.

    0 讨论(0)
提交回复
热议问题