fix: intersperse code contents
parent
5dc3ab855f
commit
cce4285c96
|
@ -103,7 +103,7 @@ partial def modifyElement (element : Element) (linkCode : Bool := true) : HtmlM
|
||||||
for c in contents do
|
for c in contents do
|
||||||
match c with
|
match c with
|
||||||
| Content.Character s =>
|
| Content.Character s =>
|
||||||
newContents := newContents ++ (← s.splitOn.mapM possibleNameToAnchor)
|
newContents := newContents ++ (← s.splitOn.mapM possibleNameToAnchor).intersperse (Content.Character " ")
|
||||||
| _ => newContents := newContents.push c
|
| _ => newContents := newContents.push c
|
||||||
pure ⟨ name, attrs, newContents⟩
|
pure ⟨ name, attrs, newContents⟩
|
||||||
-- recursively modify
|
-- recursively modify
|
||||||
|
|
Loading…
Reference in New Issue