From 684aa67e8ea4ab7ee997c7c90fdf5480198539c4 Mon Sep 17 00:00:00 2001 From: audax Date: Thu, 12 Sep 2019 21:39:12 +0200 Subject: [PATCH] User render.scss for markdown preview --- schickmacher/static/sass/project.scss | 4 ++++ schickmacher/templates/base.html | 3 +++ schickmacher/templates/renderer/render_form.html | 2 ++ schickmacher/templates/renderer/rendered.html | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/schickmacher/static/sass/project.scss b/schickmacher/static/sass/project.scss index 1208a38..bf4ec76 100644 --- a/schickmacher/static/sass/project.scss +++ b/schickmacher/static/sass/project.scss @@ -33,3 +33,7 @@ $red: #b94a48; border-color: $dark-pink; color: $red; } + +.markdownx-preview { + @import 'render'; +} diff --git a/schickmacher/templates/base.html b/schickmacher/templates/base.html index d44cadd..3aadc11 100644 --- a/schickmacher/templates/base.html +++ b/schickmacher/templates/base.html @@ -19,10 +19,13 @@ + + {% compress css %} + diff --git a/schickmacher/templates/renderer/render_form.html b/schickmacher/templates/renderer/render_form.html index cb7e8b0..f0db677 100644 --- a/schickmacher/templates/renderer/render_form.html +++ b/schickmacher/templates/renderer/render_form.html @@ -17,5 +17,7 @@ {% csrf_token %} {{ form|crispy }} +
{{ form.media }} +
{% endblock %} diff --git a/schickmacher/templates/renderer/rendered.html b/schickmacher/templates/renderer/rendered.html index ed003ac..29b7775 100644 --- a/schickmacher/templates/renderer/rendered.html +++ b/schickmacher/templates/renderer/rendered.html @@ -5,7 +5,7 @@ {{ title }} {% compress css %} - + {% endcompress %}