wip
This commit is contained in:
parent
7dafc3c1e4
commit
72dac49878
7 changed files with 119 additions and 239 deletions
11
app/templates/components/markdown_content.html
Normal file
11
app/templates/components/markdown_content.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% macro render_markdown(content) %}
|
||||
<div class="markdown-content markdown-reading-view">
|
||||
{{ content|github_style_admonition|markdown|safe }}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro render_markdown_with_truncate(content, length=300) %}
|
||||
<div class="markdown-content markdown-reading-view">
|
||||
{{ content|github_style_admonition|markdown|truncate(length, true)|safe }}
|
||||
</div>
|
||||
{% endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue