mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
appstore: switch to pycmarkgfm for markdown rendering
This commit is contained in:
parent
2e3b9c8d9b
commit
6276e3995b
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
import markdown
|
import pycmarkgfm
|
||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
import toml
|
import toml
|
||||||
|
@ -137,7 +137,7 @@ def app_info(app_id):
|
||||||
description_path = None
|
description_path = None
|
||||||
if description_path:
|
if description_path:
|
||||||
with open(description_path) as f:
|
with open(description_path) as f:
|
||||||
infos["full_description_html"] = markdown.markdown(f.read())
|
infos["full_description_html"] = pycmarkgfm.gfm_to_html(f.read())
|
||||||
else:
|
else:
|
||||||
infos["full_description_html"] = infos['manifest']['description'][locale]
|
infos["full_description_html"] = infos['manifest']['description'][locale]
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ def app_info(app_id):
|
||||||
pre_install_path = None
|
pre_install_path = None
|
||||||
if pre_install_path:
|
if pre_install_path:
|
||||||
with open(pre_install_path) as f:
|
with open(pre_install_path) as f:
|
||||||
infos["pre_install_html"] = markdown.markdown(f.read())
|
infos["pre_install_html"] = pycmarkgfm.gfm_to_html(f.read())
|
||||||
|
|
||||||
infos["screenshot"] = None
|
infos["screenshot"] = None
|
||||||
|
|
||||||
|
|
|
@ -2,5 +2,5 @@ Flask==2.3.2
|
||||||
python-slugify
|
python-slugify
|
||||||
PyGithub
|
PyGithub
|
||||||
toml
|
toml
|
||||||
markdown
|
pycmarkgfm
|
||||||
gunicorn
|
gunicorn
|
||||||
|
|
Loading…
Add table
Reference in a new issue