AtlatestRepositorysigil-markdown

sigil-markdown / tree / bench / goldencode-link-edge.sxml

1(document (h1 "Code and link edge cases") (p "Empty backticks " "`" (code " and single ") " tick alone. Unclosed " (code "code to end of line here. Code ") "with " "*" " and " "_" " and " "[" " ] and ! and " " " "inside" (code " literal. Adjacent ") "one" "`" (code "two") " codes and " (code "a") "b" (code "c") " pattern. Code at end of line " (code "tail") " Backtick then text " "`" "x plain after.") (p "Link " (a (@ (href "http://example.com")) "text") " normal. Link no close paren " (a (@ (href "http://example.com and text. Link empty [](url")) "text") " and " (a (@ (href "")) "text") " empty url. Link " (a (@ (href "url")) "text with `code` inside") " literal text. Bracket " "[" "not a link] with no paren after. Bracket " "[" "not a link] (space before paren) here. Nested " "[" "outer " "[" "inner] outer](url) brackets.") (p "Image " (img (@ (src "src.png") (alt "alt"))) " normal. Image empty " (img (@ (src "src.png") (alt ""))) " no alt. Image " (img (@ (src "") (alt "alt"))) " no src. Image no paren " "!" "[" "alt] here. Bang alone ! and bang bracket " "!" "[" "x] no paren. Bang text a!b!c no brackets.") (p "Backslash at very end " " " "Escaped bracket " "[" "not link" "]" " and escaped bang " "!" "[" "not image" "]" ". Double backslash " "\\" " then text."))