diff --git a/ipymd/formats/markdown.py b/ipymd/formats/markdown.py index 7bf4315..20828a3 100644 --- a/ipymd/formats/markdown.py +++ b/ipymd/formats/markdown.py @@ -128,10 +128,10 @@ def meta(self, source, is_notebook=False): return '' return '---\n\n' - meta = '{}\n'.format(yaml.dump(source, - explicit_start=True, - explicit_end=True, - default_flow_style=False)) + meta = '{}\n'.format(yaml.safe_dump(source, + explicit_start=True, + explicit_end=True, + default_flow_style=False)) if is_notebook: # Replace the trailing `...\n\n`