feat: markdown support for fenced code blocks

This commit is contained in:
Tan Nian Wei 2021-09-19 10:43:35 +08:00
parent 472c1a9372
commit 5d84384924

View File

@ -140,7 +140,7 @@ class Interface:
self.description = description
if article is not None:
article = utils.readme_to_html(article)
article = markdown2.markdown(article)
article = markdown2.markdown(article, extras=["fenced-code-blocks"])
self.article = article
self.thumbnail = thumbnail
self.theme = theme if theme is not None else os.getenv("GRADIO_THEME", "default")