This repository has been archived on 2023-09-07. You can view files and clone it, but cannot push or open issues or pull requests.
nitter-nolog/tools/rendermd.nim
2022-01-09 23:35:56 +01:00

10 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