Skip to content

Commit 22a43cb

Browse files
fix: Don't include syntax information in elaboration of math elements
This avoids spurious infoview display of the internal elaborated constant type. This bug is only observable after applying the fix in leanprover#700 ; will wait for leanprover#700 and leanprover#699 to merge this so we can properly provide a test. Co-authored-by: David Thrane Christiansen <david@lean-fro.org>
1 parent 58a1f8c commit 22a43cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/verso/Verso/Doc/Elab.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ public meta def _root_.Lean.Doc.Syntax.code.expand : InlineExpander
194194
@[inline_expander Lean.Doc.Syntax.inline_math]
195195
public meta def _root_.Lean.Doc.Syntax.inline_math.expand : InlineExpander
196196
| `(inline| \math code( $s )) =>
197-
``(Inline.math MathMode.inline $s)
197+
``(Inline.math MathMode.inline $(quote s.getString))
198198
| _ => throwUnsupportedSyntax
199199

200200
@[inline_expander Lean.Doc.Syntax.display_math]
201201
public meta def _root_.Lean.Doc.Syntax.display_math.expand : InlineExpander
202202
| `(inline| \displaymath code( $s )) =>
203-
``(Inline.math MathMode.display $s)
203+
``(Inline.math MathMode.display $(quote s.getString))
204204
| _ => throwUnsupportedSyntax
205205

206206

0 commit comments

Comments
 (0)