main
Alex J. Best 2022-11-06 21:27:26 +01:00
parent d62268b013
commit fc00a41ecb
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ partial def modifyElement (element : Element) : HtmlM Element :=
-- auto link for inline <code></code>
else if name = "code" ∧
-- don't linkify code blocks explicitly tagged with a language other than lean
((¬ attrs.contains "class") (((attrs.find? "class").getD "").splitOn).filter (fun s => s.startsWith "language-" ∧ s ≠ "language-lean") = []) then
(((attrs.find? "class").getD "").splitOn.all (fun s => s == "language-lean" || !s.startsWith "language-")) then
autoLink el
-- recursively modify
else