Render markdown files with a tool

This commit is contained in:
Zed
2022-01-09 23:14:01 +01:00
parent 1fc6a4092e
commit 8c2e0c66e2
9 changed files with 45 additions and 21 deletions

10
tools/rendermd.nim Normal file
View File

@ -0,0 +1,10 @@
import std/[os, strutils]
import markdown
for file in walkFiles("public/md/*.md"):
let
html = markdown(readFile(file))
output = file.replace(".md", ".html")
output.writeFile(html)
echo "Rendered ", output