Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Nov 6, 2024
1 parent 1f3c9fa commit 0e27890
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,11 @@
markdownFileURL = '';
}

// Prefix 'https://' if not already present
if (markdownFileURL && !markdownFileURL.startsWith('http://') && !markdownFileURL.startsWith('https://')) {
markdownFileURL = 'https://' + markdownFileURL;
}

// Remove any '#' and everything after it from the markdownFileURL
markdownFileURL = markdownFileURL.split('#')[0];

Expand Down

0 comments on commit 0e27890

Please sign in to comment.