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.
This commit is contained in:
parent
bae3e4306a
commit
f492aa962b
4
bin/contrib/discount.rc
Normal file
4
bin/contrib/discount.rc
Normal file
|
@ -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
|
||||||
|
|
|
@ -26,6 +26,7 @@ path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin)
|
||||||
# formatter, but all major functionality should should be formatter agnostic.
|
# formatter, but all major functionality should should be formatter agnostic.
|
||||||
#formatter=(fltr_cache markdown.pl)
|
#formatter=(fltr_cache markdown.pl)
|
||||||
formatter=(fltr_cache md2html.awk) # no perl for old men
|
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 ()
|
# Enable debugging, to disable set to ()
|
||||||
debug=true
|
debug=true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user