1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-29 13:00:10 +01:00
nitter/tools/rendermd.nim

11 lines
221 B
Nim
Raw Normal View History

2022-01-09 23:14:01 +01:00
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