Skip to content

Commit

Permalink
Merge pull request rossant#78 from dmhowcroft/master
Browse files Browse the repository at this point in the history
updated markdown.py to use yaml.safe_dump()
  • Loading branch information
rossant authored Oct 26, 2016
2 parents e865b23 + 2a4a782 commit 8363382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ipymd/formats/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 8363382

Please sign in to comment.