Skip to content

Commit 9535943

Browse files
Fixed markdown content prefetch
1 parent d4c488a commit 9535943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/services/howtouse/markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function loadMarkdown(name) {
9797
const samples = [];
9898
match = match.replace(/(\!?)\[([\w ]+?)\]\(([\s\S]+?)\)/g, (str, sign, caption, url) => {
9999
if (sign == "") {
100-
if ((url.endsWith('.html') && !url.startsWith('http')) || url.endsWith('.js')) {
100+
if ((url.endsWith('.html') || url.endsWith('.js')) && !url.startsWith('http')) {
101101
samples.push({
102102
caption,
103103
url: getStaticUrl(url),

0 commit comments

Comments
 (0)