Marked Share renders YAML front matter as visible text

Viewed 29

share.markedapp.com, published from Marked 3.2.3 (1217)

I have "Remove before rendering" turned on for YAML metadata in Marked's settings, so locally the front matter block is hidden. But when I publish to Marked Share, the --- fenced YAML block shows up as visible text at the top of the page. The server's renderer apparently doesn't strip standard YAML front matter, even though the desktop app does. This is my preferred result: I don't want the reader to see this.

Not a huge deal — I can remove the block before publishing, but it would be nice if Marked Share respected the same metadata settings, or at least stripped --- fenced YAML by default since it's standard in GFM-flavored Markdown.

2 Answers

Confirmed fixed in the page body. Published a fresh test document with a YAML block from 3.2.4 and the rendered page starts at the H1: https://markedb.in/misqn

One issue: the og:description meta tag on that page contains the whole front matter block, so link previews (Slack, iMessage, etc.) start with title: "..." author: Mark date: .... Same class of issue as the code-span stripping you just fixed in og:description.

This should be fixed. Please test and let me know.