Skip to content

Commit 8dbe9e7

Browse files
committed
chore: adapt Highlighted type
1 parent d738f60 commit 8dbe9e7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/verso-blog/VersoBlog.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ meta def leanCommand : BlockCommandOf LeanCommandConfig
325325
let projectExamples ← getSubproject project
326326
let (_, {highlighted := hls, original := str, ..}) ← projectExamples.getOrSuggest exampleName
327327
Verso.Hover.addCustomHover exampleName s!"```lean\n{str}\n```"
328-
`(Block.other (Blog.BlockExt.highlightedCode { contextName := $(quote project.getId), showProofStates := $(quote showProofStates) } (SubVerso.Highlighting.Highlighted.seq $(quote hls))) #[Block.code $(quote str)])
328+
`(Block.other (Blog.BlockExt.highlightedCode { contextName := $(quote project.getId), showProofStates := $(quote showProofStates) } $(quote hls)) #[Block.code $(quote str)])
329329

330330
structure LeanCommandAtArgs where
331331
project : Ident
@@ -402,7 +402,7 @@ meta def leanTerm : RoleExpanderOf LeanTermArgs
402402
let projectExamples ← getSubproject project
403403
let (_, {highlighted := hls, original := str, ..}) ← projectExamples.getOrSuggest <| mkIdentFrom name exampleName
404404
Verso.Hover.addCustomHover arg s!"```lean\n{str}\n```"
405-
`(Inline.other (Blog.InlineExt.highlightedCode { contextName := $(quote project.getId) } (SubVerso.Highlighting.Highlighted.seq $(quote hls))) #[Inline.code $(quote str)])
405+
`(Inline.other (Blog.InlineExt.highlightedCode { contextName := $(quote project.getId) } $(quote hls)) #[Inline.code $(quote str)])
406406
| _, more =>
407407
if h : more.size > 0 then
408408
throwErrorAt more[0] "Unexpected contents"

src/verso-manual/VersoManual/InlineLean/Signature.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ meta def signature : CodeBlockExpanderOf SignatureConfig
8787
try
8888
let ((hls, _, _, _), st') ← ((SubVerso.Examples.checkSignature name sig).run cmdCtx).run cmdState
8989
setInfoState st'.infoState
90-
pure (Highlighted.seq hls)
90+
pure hls
9191
catch e =>
9292
let fmt ← PrettyPrinter.ppSignature (TSyntax.mk name.raw[0]).getId
9393
Suggestion.saveSuggestion str (fmt.fmt.pretty 60) (fmt.fmt.pretty 30 ++ "\n")

0 commit comments

Comments
 (0)