mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 04:28:30 +00:00
Fix comment
This commit is contained in:
parent
018a45e2d4
commit
e1a8bd333d
@ -29,7 +29,7 @@ function relativeURLFix() {
|
|||||||
return rehypeUrls((url) => {
|
return rehypeUrls((url) => {
|
||||||
// NOTE: the base argument to the URL constructor is ignored if the input is already
|
// NOTE: the base argument to the URL constructor is ignored if the input is already
|
||||||
// absolute and used if not, which facilitates the comparison below
|
// absolute and used if not, which facilitates the comparison below
|
||||||
// true if url is relative
|
// true if origins are same, and relative urls are considered as origin equal to site var value
|
||||||
if (new URL(site).origin === new URL(url.href, site).origin) {
|
if (new URL(site).origin === new URL(url.href, site).origin) {
|
||||||
let newHref = baseNoTrailing;
|
let newHref = baseNoTrailing;
|
||||||
if (url.href.startsWith('#')) {
|
if (url.href.startsWith('#')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user