Allow tt in comments, class in pre
This commit is contained in:
parent
17905ace44
commit
f290d7c2c7
1 changed files with 6 additions and 2 deletions
|
@ -94,6 +94,9 @@
|
||||||
(define (marxdown->sxml text)
|
(define (marxdown->sxml text)
|
||||||
(smarxdown->shtml (call-with-input-string text marxdown->smarxdown)))
|
(smarxdown->shtml (call-with-input-string text marxdown->smarxdown)))
|
||||||
|
|
||||||
|
(define (pre-class? class)
|
||||||
|
(string-prefix? "pre-" class))
|
||||||
|
|
||||||
(define *allowed-tags*
|
(define *allowed-tags*
|
||||||
`((a (href . ,urlish?) title)
|
`((a (href . ,urlish?) title)
|
||||||
(abbr title)
|
(abbr title)
|
||||||
|
@ -105,9 +108,10 @@
|
||||||
(em)
|
(em)
|
||||||
(i)
|
(i)
|
||||||
(p)
|
(p)
|
||||||
(pre)
|
(pre (class . ,pre-class?))
|
||||||
(strike)
|
(strike)
|
||||||
(strong)))
|
(strong)
|
||||||
|
(tt)))
|
||||||
|
|
||||||
(define (compile-sxslt-rules tags)
|
(define (compile-sxslt-rules tags)
|
||||||
(define (ok . body)
|
(define (ok . body)
|
||||||
|
|
Loading…
Reference in a new issue