| Input: "[\\[link A\\]](https://example.com) [\\[link B\\]](https://more.example.com)" | |
| Success! Final stack: | |
| [(Lean.Doc.Parser.Block.para | |
| [(Lean.Doc.Parser.Inline.link | |
| "[" | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText | |
| "\\[link A\\]"))] | |
| "]" | |
| (Lean.Doc.Parser.LinkTarget.url | |
| "(" | |
| (Lean.Doc.Parser.versoLinkUrl | |
| "https://example.com") | |
| ")")) | |
| (Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText " ")) | |
| (Lean.Doc.Parser.Inline.link | |
| "[" | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText | |
| "\\[link B\\]"))] | |
| "]" | |
| (Lean.Doc.Parser.LinkTarget.url | |
| "(" | |
| (Lean.Doc.Parser.versoLinkUrl | |
| "https://more.example.com") | |
| ")"))])] | |
| All input consumed. | |
| Round-trip OK | |
| Decoded views: | |
| para | |
| link (opener := "[") (closer := "]") (target := url (opener := "(") (url := "https://example.com") (closer := ")")) | |
| text (content := "[link A]") | |
| text (content := " ") | |
| link (opener := "[") (closer := "]") (target := url (opener := "(") (url := "https://more.example.com") (closer := ")")) | |
| text (content := "[link B]") |