@@ -637,6 +637,11 @@ tests =
637 , "#anchor and ends here."
637 , "#anchor and ends here."
639 para ("Paragraph starts here\n" <> spanWith ("anchor", [], []) mempty <> "and ends here.")
639 para ("Paragraph starts here\n" <> spanWith ("anchor", [], []) mempty <> "and ends here.")
640+ , "Anchor with \"-\"" =:
641+ T.unlines [ "; A comment to make sure anchor is not parsed as a directive"
642+ , "#anchor-id Target"
644+ para (spanWith ("anchor-id", [], []) mempty <> "Target")
641 , testGroup "Footnotes"
646 , testGroup "Footnotes"
642 [ "Simple footnote" =:
647 [ "Simple footnote" =: