File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 <|
You can’t perform that action at this time.
0 commit comments