-
I am using the core package to render HTML and I am wondering is it possible to not include page breaks? in my markdown file I use "---" for page breaks when converting to PDF, but I don't want page breaks when converting to HTML. var marp = new Marp({});
var { html, css } = marp.render("<markdown here>"); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Marp Core, extended from Marpit, has included styles for page breaks by Set 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 |
Beta Was this translation helpful? Give feedback.
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.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