Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Should have an option to ignore front matter #183

Closed
sylvestre opened this issue Nov 11, 2019 · 2 comments
Closed

Should have an option to ignore front matter #183

sylvestre opened this issue Nov 11, 2019 · 2 comments

Comments

@sylvestre
Copy link

When we have some md files also used for Jekyll, they come with a Front Matter.
It would be great to be able to tell recommonmark to ignore the declaration as it is currently rendering.

Here is an example of a rendering without this option:
image

@sylvestre
Copy link
Author

See also: readthedocs/commonmark.py#208

@sylvestre
Copy link
Author

I have been able to workaround this issue by using https://github.com/eyeseast/python-frontmatter/
to extract the relevant info from the fm and rewrite the md file. See:
https://hg.mozilla.org/mozilla-central/file/tip/tools/docs/moztreedocs/__init__.py#l127

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants