Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.04 KB

article10.md

File metadata and controls

31 lines (25 loc) · 1.04 KB

How do I use Markdown?

You can also use markdown for your articles by using lowdown (or really any translator).

Markdown support isn't internal to sblg(1). However, you can easily use it by translating the Markdown text into XHTML and wrapping it with the appropriate <article data-sblg-article="1"> bits.

.md.xml:
	( echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" ; \
	  echo "<article data-sblg-article=\"1\">" ; \
	  lowdown $< ; \
	  echo "</article>" ; ) >$@

I use lowdown because I wrote it (modernised fork of hoedown) and because it has some additional support for sblg(1) like annotating the first paragraph with an <aside>.

You can see this file in its original form as article10.md. Enjoy!