Fix mailto URLs in markdown cells

This commit is contained in:
Jonatan Kłosko 2025-04-03 19:41:38 +09:00
parent 9535e9e536
commit 93b2dd269b

View file

@ -271,7 +271,7 @@ function rehypeExternalLinks(options) {
} }
function isAbsoluteUrl(url) { function isAbsoluteUrl(url) {
return /^(?:[a-z]+:)?\/\//i.test(url); return /^([a-z]+:|\/\/)/i.test(url);
} }
function isPageAnchor(url) { function isPageAnchor(url) {