Commits

Moritz Heidkamp committed 4964eef

Allow line-end in link labels

  • Participants
  • Parent commits bb930f0

Comments (0)

Files changed (1)

File lowdown-impl.scm

 (define link-label*
   (recursive-parser
    (enclosed-by (is #\[)
-                (sequence* ((text (-> (none-of* (in #\[ #\]) inline)
-                                      (zero-or-more)))
+                (sequence* ((text (zero-or-more
+                                   (none-of* (in #\[ #\])
+                                             (any-of normal-line-end inline))))
                             (label (maybe (link-label*))))
                   (result (if label
                               (append text (list "[") label (list "]"))