diff options
| author | Bobby <[email protected]> | 2022-10-01 14:22:58 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-10-01 14:22:58 -0400 |
| commit | 218955f5ef2ae09656f93161fa59e0902370ff22 (patch) | |
| tree | bf20afeff9f2ccea6b042f3ce4bb3228c199556e | |
| parent | b42e6edc8df1d91c260addeb836fb2a193bd39de (diff) | |
| download | thatcomputerscientist-218955f5ef2ae09656f93161fa59e0902370ff22.tar.xz thatcomputerscientist-218955f5ef2ae09656f93161fa59e0902370ff22.zip | |
fixed rendering math and code
| -rw-r--r-- | static/css/main.css | 12 | ||||
| -rw-r--r-- | templates/blog/post.html | 10 | ||||
| -rw-r--r-- | templates/blog_admin/edit_post.html | 3 |
3 files changed, 19 insertions, 6 deletions
diff --git a/static/css/main.css b/static/css/main.css index 7e4f00ad..6a67f1ad 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -53,9 +53,9 @@ a:visited { color: #b894dc; } */ -svg { +/* svg { filter: invert(1); -} +} */ fieldset, legend { color: #cecece; @@ -414,3 +414,11 @@ li.new::before{ .hljs-style-github-dark-dimmed .hljs { background: rgb(34 39 46 / 0%) !important; } + +pre { + color: white; + background-color: rgba(40, 48, 59, 0.317); + border: 1px solid #cecece; + padding: 10px; + border-radius: 5px; +} diff --git a/templates/blog/post.html b/templates/blog/post.html index cb4528b7..f7984107 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -1,4 +1,9 @@ {% extends 'blog/partials/base.html' %} {% block content %} +<link + rel="stylesheet" + href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai-sublime.min.css" +/> +<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet" /> <div class="main"> <article> <h1 style="margin-bottom: 12px; font-size: 2rem;">{{ post.title }}</h1> @@ -62,7 +67,8 @@ {% endif %} </div> </article> - <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/mml-chtml.min.js" integrity="sha512-4JUXEJCjFmGygcGTR/doRQ1Kw7uEYn+kBpiGWyVBzUQHtFSPQNm08E/lqo2/XJqiWKKV0nTpv1q8bHPPDL4n4Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-svg.js"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> <script> function editComment(id) { document.getElementById('comment-body-' + id).style.display = 'none'; @@ -73,6 +79,6 @@ document.getElementById('comment-body-' + id).style.display = 'block'; document.getElementById('edit-form-' + id).style.display = 'none'; } - </script> +</script> </div> {% endblock %} diff --git a/templates/blog_admin/edit_post.html b/templates/blog_admin/edit_post.html index 7d6bd29d..51762b06 100644 --- a/templates/blog_admin/edit_post.html +++ b/templates/blog_admin/edit_post.html @@ -114,10 +114,9 @@ </form> </section> </div> -<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/mml-chtml.min.js" integrity="sha512-4JUXEJCjFmGygcGTR/doRQ1Kw7uEYn+kBpiGWyVBzUQHtFSPQNm08E/lqo2/XJqiWKKV0nTpv1q8bHPPDL4n4Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-svg.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> <script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script> -<script src="https://cdn.jsdelivr.net/gh/T-vK/DynamicQuillTools@master/DynamicQuillTools.js"></script> <script> const Parchment = Quill.import("parchment"); const Delta = Quill.import("delta"); |
