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 9, 2022
1 parent e0cf7da commit 08d2882
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 08d2882

Please sign in to comment.