Skip to content

Commit

Permalink
PoP Set title in front-matter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jan 6, 2022
1 parent 79f3b4a commit 11c6252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions myst_parser/docutils_renderer.py
Expand Up @@ -748,6 +748,9 @@ def render_front_matter(self, token: SyntaxTreeNode) -> None:
else:
data = deepcopy(token.content)

if data.get("title"):
self.nested_render_text(f"# {data.pop('title')}", 0)

substitutions = data.pop("substitutions", {})
html_meta = data.pop("html_meta", {})

Expand Down

0 comments on commit 11c6252

Please sign in to comment.