- (values (cons (add-block-line! block
- `(span (@ (class "line")) ,line))
- other-blocks)
- (if (string-prefix? "--8<---------------cut here" line)
- #f context)))
+ (if (string-prefix? "--8<---------------cut here" line)
+ (values blocks #f)
+ (values (cons (add-block-line! block
+ `(span (@ (class "line")) ,line))
+ other-blocks)
+ context)))
`(span (@ (class "line commit changelog")) ,line))
((string-prefix? "diff --git" line)
`(span (@ (class "line diff file")) ,line))
`(span (@ (class "line commit changelog")) ,line))
((string-prefix? "diff --git" line)
`(span (@ (class "line diff file")) ,line))
(else
`(span (@ (class "line")) ,line)))))
(if (eq? new-context context)
(else
`(span (@ (class "line")) ,line)))))
(if (eq? new-context context)