crowdagger / crowbook

Converts books written in Markdown to HTML, LaTeX/PDF and EPUB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Horizontal rules interpreted as frontmatter

Ellpeck opened this issue · comments

commented

When using the single-file mode, multiple horizontal rules are erroneously interpreted as additional front matter and stripped, even when an actual front matter block is provided. Here's an example:

The markdown

---
title: "Test!"
---

This is

a test file

---

with some content in it

that is pretty cool

---

but without any frontmatter

exports to PDF as the following:

image

As you can see, the middle section is entirely ignored.

Of course, horizontal rules can still be used properly by using ___ or *** instead, but I personally prefer using --- since it's what I'm most used to.