Skip to content

Commit 9476c5e

Browse files
committed
1 parent 6216c69 commit 9476c5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Manual/Meta/ErrorExplanation.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ structure ExplanElabM.State where
292292
/-- The index of the next block in the context's `blocks` to elaborate. -/
293293
blockIdx : Nat := 0
294294
/-- Active Markdown header levels that can be closed by subsequent Markdown -/
295-
levels : List (Nat × Nat) := []
295+
levels : Markdown.HeaderMapping := default
296296
/-- The index of the current code block within this explanation. -/
297297
codeBlockIdx : Nat := 0
298298

@@ -362,7 +362,7 @@ def addPartFromExplanationMarkdown (b : MD4Lean.Block) : ExplanElabM Unit := do
362362
let keywords := tactics.map (·.userName)
363363
let ref ← getRef
364364
let {name, severity .. } ← read
365-
let ls ← addPartFromMarkdown b
365+
let ls ← addPartFromMarkdown b ((← getThe ExplanElabM.State).levels)
366366
(handleHeaders := Markdown.strongEmphHeaders)
367367
(elabInlineCode := some (tryElabInlineCodeStrictRestoringState tactics keywords))
368368
(elabBlockCode := some fun i l s => withRef ref <|

0 commit comments

Comments
 (0)