Skip to content

Commit 0bdb41f

Browse files
authored
Replace the "[version]" in the body of the markdown, fix #37 (#39)
1 parent 3811498 commit 0bdb41f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/_build/generator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export async function makeGenerator() {
117117
// fix links
118118
body = body.replace(/\]\((?!\w+:\/\/)(.+?)\.md([)#])/gim, "]($1.html$2")
119119

120+
// update version
121+
body = body.replaceAll("[version]", versions.mithril)
122+
120123
let markedHtml = marked(body)
121124

122125
// inject anchors

0 commit comments

Comments
 (0)