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-25 10:42:59 -08:00
|
|
|
<div id='froghat'>{{ 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 -->
|
2025-12-25 10:58:59 -08:00
|
|
|
<script src="{{ url_for('static', filename='purify.min.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='marked.umd.min.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='froghat.js' ) }}"></script>
|
2025-12-24 15:15:12 -08:00
|
|
|
{% if user.can_write(page) %}
|
2025-12-25 10:58:59 -08:00
|
|
|
<script src="{{ url_for('static', filename='turndown.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='joplin-turndown-plugin-gfm.js' ) }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='froghat-editor.js' ) }}"></script>
|
2025-12-24 15:15:12 -08:00
|
|
|
{% endif %}
|
|
|
|
|
<script>
|
2025-12-25 10:42:59 -08:00
|
|
|
const wiki = new Froghat{% if user.can_write(page) %}Editor{% endif %}({plugins: [MacroPlugin, WidgetPlugin]});
|
2025-12-24 15:15:12 -08:00
|
|
|
wiki.view();
|
|
|
|
|
</script>
|
2025-10-11 15:37:00 -07:00
|
|
|
{% endblock %}
|