| Input: "%%%\nfoo := 53\n%%%\nText/paragraph!" | |
| Success! Final stack: | |
| [(Lean.Doc.Parser.Block.metadata_block | |
| "%%%" | |
| (Term.structInstFields | |
| [(Term.structInstField | |
| (Term.structInstLVal `foo []) | |
| [[] | |
| [] | |
| (Term.structInstFieldDef | |
| ":=" | |
| [] | |
| (num "53"))]) | |
| []]) | |
| "%%%") | |
| (Lean.Doc.Parser.Block.para | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText | |
| "Text/paragraph!"))])] | |
| All input consumed. | |
| Round-trip OK | |
| Decoded views: | |
| metadata (opener := "%%%") (fields := 1) (closer := "%%%") | |
| para | |
| text (content := "Text/paragraph!") |