Use fenced_code extension

master
Travis Briggs 2017-12-03 20:12:57 -08:00 committed by GitHub
parent e87547b5f6
commit f4e766cbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ def compile_markdown(file_path:str) -> str:
"""Given a string of markdown, compiles it and returns the result.""" """Given a string of markdown, compiles it and returns the result."""
return markdown( return markdown(
slurp(file_path), slurp(file_path),
extensions=[markdown.extensions.fenced_code],
output_format='html5') output_format='html5')
def compile_plaintext(file_path:str) -> str: def compile_plaintext(file_path:str) -> str: