mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
feat: markdown support for fenced code blocks
This commit is contained in:
parent
472c1a9372
commit
5d84384924
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user