torchbox / wagtail-markdown

Markdown support for Wagtail
zlib License
198 stars 66 forks source link

possible to customize css used for markdown rendering #86

Closed tian-yan closed 3 years ago

tian-yan commented 3 years ago

is it possible to customize CSS for rendering markdown elements such as h1~h5, quote, code paragraph etc?

zerolab commented 3 years ago

@tian-yan I am not sure I understand your question. Where would one customise the rendering - on the front end? in the editing interface? what sort of customisation are you looking at? Have you seen https://docs.wagtail.io/en/stable/reference/hooks.html#insert-editor-css (which applies to the Wagtail admin in general)?

tian-yan commented 3 years ago

@zerolab sorry for the confusion, I meant customizing the rendering of Markdown-generated HTML file. As per my understanding, Markdown only does the converting from Markdown to HTML, and will not touch the HTML rendering. So, I believe I can apply any CSS file to customize the rendering of Markdown-generated HTML. And the link you provided fulfills my requirement. Thank you for your reply.