Skip to content

Commit 1b8f444

Browse files
committed
chore(ci): upstream update
1 parent ced0c24 commit 1b8f444

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="apple-mobile-web-app-capable" content="yes" />
7-
<meta name="generator" content="slidesdown 0.13.1" />
7+
<meta name="generator" content="slidesdown 0.13.2" />
88
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
99
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
1010
<title>Slidesdown</title>

plugin/slidesdown.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ const Plugin = () => {
830830

831831
return processSlides(deck.getRevealElement()).then(() => {
832832
// Marked options: https://marked.js.org/using_advanced#options
833+
// baseUrl for html elements a and img
833834
let base_url;
834835
if (!markedOptions.baseUrl) {
835836
base_url = BASE_URL;
@@ -859,7 +860,6 @@ const Plugin = () => {
859860
},
860861
walkTokens: (token) => {
861862
if (token.type === "html") {
862-
// baseUrl for html elements a and img
863863
let text = []
864864
let last_index = 0;
865865
for (const match of token.text.matchAll(img_src_regex)) {
@@ -869,6 +869,8 @@ const Plugin = () => {
869869
const needsRebase = isRelative.test(ref)
870870
if (needsRebase) {
871871
text.push(`${match[2]}${base_url}${match[3]}${match[4]}`)
872+
} else {
873+
text.push(`${match[2]}${match[3]}${match[4]}`)
872874
}
873875
last_index = match.index + match[0].length
874876
}
@@ -884,6 +886,8 @@ const Plugin = () => {
884886
const needsRebase = isRelative.test(ref)
885887
if (needsRebase) {
886888
text.push(`${match[2]}${base_url}${match[3]}${match[4]}`)
889+
} else {
890+
text.push(`${match[2]}${match[3]}${match[4]}`)
887891
}
888892
last_index = match.index + match[0].length
889893
}

0 commit comments

Comments
 (0)