mirror of
https://github.com/zedeus/nitter.git
synced 2024-10-31 22:08:50 +00:00
11 lines
221 B
Nim
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
|