2025-09-27 16:20:08 -07:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
2025-10-11 15:37:00 -07:00
|
|
|
{% block styles %}
|
2025-09-28 14:14:16 -07:00
|
|
|
{% endblock %}
|
2025-10-11 15:37:00 -07:00
|
|
|
|
2025-09-27 16:20:08 -07:00
|
|
|
{% block content %}
|
2025-12-24 15:15:12 -08:00
|
|
|
<div id='content'>{{ page.body }}</div>
|
2025-09-27 16:20:08 -07:00
|
|
|
{% endblock %}
|
2025-09-28 14:14:16 -07:00
|
|
|
|
2025-10-11 15:37:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block scripts %}
|
2025-12-24 15:15:12 -08:00
|
|
|
<!-- for converting markdown to html -->
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/purify.min.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/marked.umd.min.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/grung.js' ) }}"></script>
|
|
|
|
|
{% if user.can_write(page) %}
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/turndown.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/joplin-turndown-plugin-gfm.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='editor/grung-editor.js' ) }}"></script>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<script>
|
|
|
|
|
const wiki = new Grung{% if user.can_write(page) %}Editor{% endif %}({plugins: [MacroPlugin]});
|
|
|
|
|
wiki.view();
|
|
|
|
|
</script>
|
2025-10-11 15:37:00 -07:00
|
|
|
{% endblock %}
|