Boxesserver: Allow extra extentions for markdown

of generators' long description
This commit is contained in:
Florian Festi 2022-04-30 16:45:01 +02:00
parent 7485e47e42
commit adf5079ea0
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ class BServer:
no_img_msg = _('There is no image yet. Please donate an image of your project on <a href=&quot;https://github.com/florianfesti/boxes/issues/140&quot;>GitHub</a>!') no_img_msg = _('There is no image yet. Please donate an image of your project on <a href=&quot;https://github.com/florianfesti/boxes/issues/140&quot;>GitHub</a>!')
if box.description: if box.description:
result.append(markdown.markdown(_(box.description))) result.append(markdown.markdown(_(box.description),
extensions=["extra"]))
result.append(f'''<div> result.append(f'''<div>
<img src="static/samples/{box.__class__.__name__}.jpg" width="100%" onerror="this.parentElement.innerHTML = '{no_img_msg}';"> <img src="static/samples/{box.__class__.__name__}.jpg" width="100%" onerror="this.parentElement.innerHTML = '{no_img_msg}';">