From 49d1bc2e1bbf1c7ac20ae970716e7a554b710e68 Mon Sep 17 00:00:00 2001 From: Bao Le <127121163+BaoLe106@users.noreply.github.com> Date: Fri, 6 Oct 2023 02:08:24 +0800 Subject: [PATCH] Markdown editor improvements (#87) --- .../markdown_editor/markdown_editor.html | 103 ++++++++++-------- 1 file changed, 56 insertions(+), 47 deletions(-) diff --git a/templates/markdown_editor/markdown_editor.html b/templates/markdown_editor/markdown_editor.html index 04418e4..c56a6c5 100644 --- a/templates/markdown_editor/markdown_editor.html +++ b/templates/markdown_editor/markdown_editor.html @@ -2,20 +2,19 @@ {% block media %} {% endblock %} @@ -49,13 +51,15 @@ preview: $(this).val() }, success: function(data) { - $('#display').html(data) + $('#display').html(data); + MathJax.typeset(); }, error: function(error) { alert(error); console.log(error.message) } }) + }); }); @@ -90,45 +94,50 @@ {% block title_row %} {% endblock %} -{% block body %} -
- -
-
-
-
- -
-
-
{{_('Update Preview')}}
-
-
-
-

{{_('Insert Image')}}

-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
-
+{% block title_ruler %} +{% endblock %} -
-
+{% block body %} +
+
+ +
+
+
+
+ +
+
+
{{_('Update Preview')}}
+
+
+
+

{{_('Insert Image')}}

+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ +
+
+
{% endblock %}