Markdown reader: use direct predicate in wikilink

Replace 'notElem' with a per-character list scan with an inline
predicate using equality checks.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
John MacFarlaneandClaude committed 2026-04-09 18:32:59 +02:00
1 parent 36b18947fb
commit 2f4982f36f
1 file changed
+1 -1
+1 -1
View File
@@ -1886,7 +1886,7 @@ wikilink constructor = do
(before, after)
| titleAfter -> (T.drop 1 after, before)
| otherwise -> (before, T.drop 1 after)
guard $ T.all (`notElem` ['\n','\r','\f','\t']) url
guard $ T.all (\c -> c /= '\n' && c /= '\r' && c /= '\f' && c /= '\t') url
return . pure . constructor attr url "" $
B.text $ fromEntities title