yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.86k stars 324 forks source link

omit some markdown content in the pdf conversion #1184

Open Kay-LGLN opened 1 year ago

Kay-LGLN commented 1 year ago

Proposal

I would like to have an option to control that some parts of my markdown aren't converted to pdf. This could be a command simular to <!-- omit from toc --> maybe like <!-- start omit from pdf --> my wall of text <!-- end omit from pdf -->?

Other information

I think this feature is valuable because some persons how gets pdfs don't want to scroll through technical details. Therefore some people in the pdf audience want less technical information and I don't want to split my markdown files. With this feature I could stay at one markdown file for each purpose while I could controll what goes into the pdf. 🙂

yzhang-gh commented 1 year ago

This extension doesn't support PDF exportation yet as I still cannot find a good solution. As for your feature request, I think it is interesting, although you may need to contact the PDF extension you are using.