Render markdown files with a tool
This commit is contained in:
10
tools/rendermd.nim
Normal file
10
tools/rendermd.nim
Normal 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
|
Reference in New Issue
Block a user