1
0
Fork 0

Allow tt in comments, class in pre

This commit is contained in:
Andy Wingo 2022-11-29 10:19:11 +01:00
parent 17905ace44
commit f290d7c2c7

View file

@ -94,6 +94,9 @@
(define (marxdown->sxml text)
(smarxdown->shtml (call-with-input-string text marxdown->smarxdown)))
(define (pre-class? class)
(string-prefix? "pre-" class))
(define *allowed-tags*
`((a (href . ,urlish?) title)
(abbr title)
@ -105,9 +108,10 @@
(em)
(i)
(p)
(pre)
(pre (class . ,pre-class?))
(strike)
(strong)))
(strong)
(tt)))
(define (compile-sxslt-rules tags)
(define (ok . body)