@@ -68,6 +68,10 @@ tests = [ "line block with blank line" =:
6868 link "http://foo.bar.baz" "" "http://foo.bar.baz" <> ". " <>
6969 link "http://foo.bar/baz_(bam)" "" "http://foo.bar/baz_(bam)"
7070 <> " (" <> link "http://foo.bar" "" "http://foo.bar" <> ")")
71+ , "Reference names with special characters" =:
72+ ("A-1-B_2_C:3:D+4+E.5.F_\n\n" ++
73+ ".. _A-1-B_2_C:3:D+4+E.5.F: https://example.com\n") =?>
74+ para (link "https://example.com" "" "A-1-B_2_C:3:D+4+E.5.F")
7175 , testGroup "literal / line / code blocks"
7276 [ "indented literal block" =: unlines
7377 [ "::"