This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create pagebreaks in exported Obsidian PDFs. | |
Rules: | |
- Convert ALL hr to page breaks. | |
- Page break before h1 and h2, except for the h1 on the first page. | |
This should now work correctly | |
- Don't break immediately after a heading. | |
- Don't break in the middle of preformatted text or blockquotes. | |
- Avoid splitting up h1 immediately followed by h2 etc. |