paper-terminal icon indicating copy to clipboard operation
paper-terminal copied to clipboard

Support YAML frontmatter

Open foxfriends opened this issue 5 years ago • 1 comments

Markdown documents sometimes have YAML frontmatter at the start, which does not render nicely when piped into paper. In particular, the output of gh repo view, for example, includes this frontmatter, so gh repo view | paper does not look great at the top.

The frontmatter should be parsed and removed. It could be shown off the page, or in a table on the page, if desired (maybe put it behind a flag?).

foxfriends avatar Dec 17 '20 05:12 foxfriends

as of the recent change, pulldown cmark supports parsing this. i'll just have to render it properly

foxfriends avatar Jan 04 '25 19:01 foxfriends