Skip to content

Commit d316236

Browse files
committed
fix: gitpage doesn't support hackmd markdown
1 parent 7ac6234 commit d316236

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/gitpage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
run: |
3030
mkdir output/js
3131
mv ./dist/web/hmd2html.min.js ./output/js
32-
mv ./example/index.md ./output/index.md
3332
mv ./example/index.html ./output/webjs.html
3433
3534
- name: commit and push

example/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,10 @@
633633
<textarea id="input"></textarea>
634634
<div id="output"></div>
635635
</div>
636-
<script src="./output/js/hmd2html.min.js"></script>
636+
<script src="./js/hmd2html.min.js"></script>
637637
<script>
638638
window.converter = new window.hmd2html.Converter();
639-
fetch("./index.md")
639+
fetch("https://raw.githubusercontent.com/ksw2000/hackmd-to-html-cli/refs/heads/main/example/index.md")
640640
.then(res => res.text())
641641
.then(data => {
642642
document.getElementById("input").value = data;

0 commit comments

Comments
 (0)