mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-05 19:45:36 -05:00
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