Zettlr: [ENHANCEMENT] YAML front matter comments

Created on 4 Feb 2020  Â·  3Comments  Â·  Source: Zettlr/Zettlr

Description

Inside YAML front matter Zettlr renders comments # comment as ATX-Headers.

Proposed Changes

Do not render headings inside YAML codeblocks/front matter.

Caveats

I think there is none.

Additional Information

Example (fenced)

---
title: Example
# abstract: "There sure will be an abstract one day."
keywords: stuff # add more keywords if you must
---

# Heading 1

Text text...

Example (not fenced)

This example does not work on GitHub because --- is rendered as a line.


title: Example

abstract: "There sure will be an abstract one day."

keywords: stuff # add more keywords if you must

Heading 1

Text text...

UX enhancement

All 3 comments

Thanks for reporting! Hopefully this'll make it into 1.6!

Sooo, I just rewrote the mess concerning the mode cascade into another mess, but now the YAML mode is correctly detected in the frontmatter, meaning:

  • MagicQuotes are disabled there (-> string escaping)
  • AutoCorrect won't trigger (-> no --- to — conversion)
  • Comments will work, obviously

Basically: It now works as it is supposed to be :D

I think I was just about file a related issue -- thanks for being an amazingly fast dev making a great product!

Was this page helpful?
0 / 5 - 0 ratings