Skip to content

Commit

Permalink
Merge pull request #143 from hibbitts-design/docsify-this-v1
Browse files Browse the repository at this point in the history
Update index.html
  • Loading branch information
paulhibbitts authored Nov 6, 2024
2 parents bfa42e2 + cdeddf6 commit b69029c
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 @@ -1281,6 +1281,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 b69029c

Please sign in to comment.