1
0
Fork 0
mirror of https://github.com/zedeus/nitter.git synced 2025-01-10 22:25:38 +00:00
nitter/tools/rendermd.nim
2022-01-09 23:35:56 +01:00

11 lines
221 B
Nim

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