Skip to content

Commit

Permalink
Merge pull request #39 from unfoldingWord/develop
Browse files Browse the repository at this point in the history
Bumps version
  • Loading branch information
richmahn authored Dec 6, 2024
2 parents f3c19f3 + 85a603f commit 820a825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "door43-preview-app",
"private": true,
"version": "1.0.19",
"version": "1.0.20",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function convertNoteFromMD2HTML(note, bookId, chapterStr) {
note = md.render(noteAsProperMarkdown);
note = note.replace(/href="\.\/0*([^/".]+)(\.md){0,1}"/g, `href="#nav-${bookId}-${chapterStr}-$1"`);
note = note.replace(/href="\.\.\/0*([^/".]+)\/0*([^/".]+)(\.md){0,1}"/g, `href="#nav-${bookId}-$1-$2"`);
note = note.replace(/href="\.\.\/\.\.\/([a-z][^/".]+)\/0*([^/".]+)\/0*([^/".]+)(\.md){0,1}"/g, `href="${window.location.href.split('#')[0]}#$1-$2-$3"`);
note = note.replace(/href="\.\.\/\.\.\/([a-z][^/".]+)\/0*([^/".]+)\/0*([^/".]+)(\.md){0,1}"/g, `href="${window.location.href.split('#')[0]}#$1-$2-$3" target="_blank"`);
note = note.replace(/href="0*([^#/".]+)(\.md){0,1}"/g, `href="#nav-${bookId}-${chapterStr}-$1"`);
note = note.replace(/href="\/*0*([^#/".]+)\/0*([^/".]+)\.md"/g, `href="#nav-${bookId}-$1-$2"`);
note = note.replace(/(?<![">])(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*))/g, '<a href="$1">$1</a>');
Expand Down

0 comments on commit 820a825

Please sign in to comment.