diff --git a/boofilsic/settings.py b/boofilsic/settings.py index b8877a27..ff47bd9f 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -153,6 +153,9 @@ AUTHENTICATION_BACKENDS = [ ] +MARKDOWNX_MARKDOWNIFY_FUNCTION = "journal.renderers.render_md" + + # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/ diff --git a/common/static/lib/css/collection.css b/common/static/lib/css/collection.css index 084620f9..dad807ae 100644 --- a/common/static/lib/css/collection.css +++ b/common/static/lib/css/collection.css @@ -191,3 +191,7 @@ progress { ::-webkit-progress-value { background-color: #00a1cc; } + +.markdownx-editor { + font-family: monospace; +} diff --git a/journal/renderers.py b/journal/renderers.py index f2fd3acd..1110e689 100644 --- a/journal/renderers.py +++ b/journal/renderers.py @@ -15,6 +15,7 @@ _mistune_plugins = [ "subscript", "math", "spoiler", + "ruby", ] _markdown = mistune.create_markdown(plugins=_mistune_plugins)