[ prog / sol / mona ]

prog


We conjure the spirits of the computer with our spells

1 2019-10-06 17:25

We need SUPER and sub scripts

2 2019-10-06 18:18

This is odd.

3 2019-10-06 18:21

I wave my programming wand on a near daily basis.

4 2019-10-06 20:57

>>1
The markup handlers are defined in lib/markup.scm via transform-rule. You have six examples from "(define bold ..." to "(define link ...". You can define your superscript and subscript handlers based on the examples. You then have to manually add them to both the let and the compose of line-scanner, because the author doesn't keep a simple list of the rules. So instead introduce a list of the rules and rewrite line-scanner to use this list by mapping over it with a lambda that does partial lines->sxml, then pass the map to compose via apply. Because the current line-scanner looks revolting.

5


VIP:

do not edit these