zhaoterryy / mkdocs-pdf-export-plugin

An MkDocs plugin to export content pages as PDF files
MIT License
313 stars 44 forks source link

Indenting #37

Closed franklin-feingold closed 5 years ago

franklin-feingold commented 5 years ago

Hi,

Thank you for making this great tool! I am running into an issue that the indenting from my md file is not rendering properly in the pdf version. The indents render properly in my md file. Any thoughts are much appreciated!

Thank you!

zhaoterryy commented 5 years ago

Could you give me an example?

I.e. page number in https://github.com/franklin-feingold/bids-specification/blob/c80bb73cb5c9ca07ad8ef8ed4f045aa54eb73829/BIDS-Specification_v1.1.2.pdf and the corresponding .md/.html?

Thank you for making this great tool!

🙇

franklin-feingold commented 5 years ago

Thank you for quick reply!

I just committed the md and html for the pdf you identified. The page number is the first page, this concerns the indenting of the TOC from the first page. From what I can tell https://github.com/zhaoterryy/mkdocs-pdf-export-plugin/issues/35 could solve this issue

zhaoterryy commented 5 years ago

From https://python-markdown.github.io/#differences:

... when a list item consists of multiple paragraphs, “each subsequent paragraph in a list item must be indented by either 4 spaces or one tab” (emphasis added). ... must always be indented by at least four spaces (or one tab) for each level of nesting.

Can you try making sure your indentations are 4 spaces in the .md file and report back?

franklin-feingold commented 5 years ago

Sorry for the late response - It appears that was the issue, thank you! It should work now