@@ -508,6 +508,7 @@ imageKey = try (do
508508anonymousKey = try (do
509509 choice [string ".. __:", string "__"]
510510 skipSpaces
511+ option ' ' newline
511512 src <- manyTill anyChar newline
512513 state <- getState
513514 return (Key [Str "_"] (Src (removeLeadingTrailingSpace src) "")))
@@ -516,6 +517,7 @@ regularKeyQuoted = try (do
516517 string ".. _`"
517518 ref <- manyTill inline (string "`:")
518519 skipSpaces
520+ option ' ' newline
519521 src <- manyTill anyChar newline
520522 return (Key (normalizeSpaces ref)
521523 (Src (removeLeadingTrailingSpace src) "")))
@@ -524,6 +526,7 @@ regularKey = try (do
524526 string ".. _"
525527 ref <- manyTill inline (char ':')
526528 skipSpaces
529+ option ' ' newline
527530 src <- manyTill anyChar newline
528531 return (Key (normalizeSpaces ref)
529532 (Src (removeLeadingTrailingSpace src) "")))