Skip to content

Render markdown without page breaks? #196

Answered by yhatt
amir734jj asked this question in Q&A
Discussion options

You must be logged in to vote

Marp Core, extended from Marpit, has included styles for page breaks by printable constructor option.
https://github.com/marp-team/marpit/blob/01f564d8e08406a9b072af226943479c0c2f5cc8/src/postcss/printable.js

Set printable: false if you don't want to split pages while printing.

new Marp({ printable: false })

Marp is designed for making presentation slides by splitting Markdown contents. If required rendering HTML into one page, you should use one of common Markdown rendering libraries instead of Marp. e.g. markdown-it, remark, marked

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amir734jj
Comment options

Answer selected by amir734jj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants