Extra spaces after the opening dashes of the frontmatter trigger the TOC plugin to interpret them as h2
ooker777 opened this issue · 2 comments
ooker777 commented
I initialize a bare project with lume init
, then create this simple markdown file. Notice there is a space after the first 3 dashes:
---
key: value
---
Body text
The result:
<!DOCTYPE html>
<hr>
<h2>key: value</h2>
<p>Body text</p>
If there isn't any space, then the result will be:
<!DOCTYPE html>
<p>Body text</p>
oscarotero commented
This bug is from Deno's std/front-matter
package that returns the front matter as invalid due this space. I've created an issue: denoland/std#5673
oscarotero commented
The bug has been fixed, I can close this.