pagebreak in markdown while creating pdf

前端 未结 6 448
囚心锁ツ
囚心锁ツ 2021-01-30 03:45

I am creating a pdf of markdown text file using doxygen (1.8.6). Now I want to get page break at specific stage in markdown file, I used this link.

In the given link the

6条回答
  •  死守一世寂寞
    2021-01-30 04:33

    Though these answers work - they kind of break one of the goals of Markdown (MD), which is to be very readable as a straight text document as well as being able to be formatted into more rich presentations.

    As soon as you start embedding a bunch of HTML/CSS in the text you lose the first aspect of MD. You might as well use Word, Libre, HTML/CSS, etc.

    I think MD would do well to add a page break sequence. Something like: <<<<>>>> or similar to the formatting operators. I use that in my MD text. It doesn't cause a page break in the PDF or HTML converters, but it's recognizable in both those and the plain-text forms.

提交回复
热议问题