werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

commit f492aa962b4c0627dd013f074c0d01000f6e70fe
parent bae3e4306a62b69d54a12d72ca36c04fff0cbe34
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Thu, 10 Mar 2022 07:40:38 +0000

fix: Add discount markdown as alternative parser

The awk script is nice, but it doesn't parse codeblocks, and was a bit limited.

Although discount's markdown is written in C, it is still a bit bulky. Still, I would recommend it as a more convenient option. This represents a compromise between suckless principles and usability, so I have not set this as the default option.

Diffstat:
Abin/contrib/discount.rc | 4++++
Metc/initrc | 1+
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/contrib/discount.rc b/bin/contrib/discount.rc @@ -0,0 +1,4 @@ +#!/usr/bin/rc +# requires discount markdown: https://www.pell.portland.or.us/~orc/Code/discount/ +markdown -f fencedcode -f ext $1 + diff --git a/etc/initrc b/etc/initrc @@ -26,6 +26,7 @@ path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) # formatter, but all major functionality should should be formatter agnostic. #formatter=(fltr_cache markdown.pl) formatter=(fltr_cache md2html.awk) # no perl for old men +# formatter=(fltr_cache discount.rc) # use C for ze modern comforts. Requires https://www.pell.portland.or.us/~orc/Code/discount/ # Enable debugging, to disable set to () debug=true