puput
puput copied to clipboard
Is markdown supported ?
trafficstars
I want to draft blog posts using Markdown, and wonder if wagtail-markdown is supported or not?
Based on this URL, it seems that there is a branch support Markdown, but I do not know how to install that specific branch when deploying via docker-compose YAML file.
any advice please ?
I ended up with customizing the source code myself to achieve below successfully via further installing wagtail-markdown package.
- only use
bodyasMarkdown Fieldto draft articles. - automate
excerptgeneration via manually selected (manually append {: .excerpt}) contents. To be specific, all**bold text contents**{: .excerpt}elements in Markdown syntax will be rendered as<strong class="excerpt">bold text contents</strong>, and be searched out bybeautifulsoup, concatenated, and saved to DB as a separate column. - automate
header imagegeneration via manually selected (manually append {: .excerpt}) image hyperlink. To be specific,{: .excerpt}in Markdown syntax will be rendered as<img class="excerpt">...</img>, then usebeautifulsoupto search out this only<img>tag withclass="excerpt"and save to DB as separate column. Lastly, I just need to fine-tune the template file to let the magic happens. It works well for me.
Hello @tian-yan, in the new 1.2.1 version we included wagtail-markdown! Check it out: https://github.com/APSL/puput/releases/tag/1.2.1.