We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d53cf commit 2f50097Copy full SHA for 2f50097
Manual/Meta/Markdown.lean
@@ -33,7 +33,7 @@ def markdown : PartCommand
33
| `(Lean.Doc.Syntax.codeblock| ``` markdown | $txt ``` ) => do
34
let some ast := MD4Lean.parse txt.getString
35
| throwError "Failed to parse body of markdown code block"
36
- let mut currentHeaderLevels : List (Nat × Nat) := []
+ let mut currentHeaderLevels : Markdown.HeaderMapping := default
37
for block in ast.blocks do
38
currentHeaderLevels ← Markdown.addPartFromMarkdown block currentHeaderLevels
39
| _ => Elab.throwUnsupportedSyntax
0 commit comments