NOWWORKINGON
zie pandoc
convert a Keepnote HTML file to a markdown file
cp [keepnote-loc] page.html cd /mnt/data/temp/
cd /mnt/data/temp
pandoc page.html -f html -t markdown -o X.md
( pandoc page.html -f html -t markdown-strict -o X.md ==> error <> docum)
rename X.md to [correct title].md
– move md file in the notes repository, @ correct location
– cleanup the md if needed
convert all markdown files in a folder to rtf files
for f in *.md; do pandoc "$f" -s -o "${f%.txt}.rtf"; done
convert all markdown files in a folder to html
for f in *.md; do pandoc "$f" -t html -o "$f.html"; done
convert a markdown to html
gl :: pandoc source all files in folders “linux” -windows
all markdown to pdf :
https://github.com/TheFern2/markdown-book
https://opensource.com/article/18/10/book-to-website-epub-using-pandoc
pandoc uses a default template for html , which is way too overloaded
construct one of your own , name it template.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="date" content='$date-meta$'>
<title>$title$</title>
</head>
<body>
$body$
</body>
</html>
execute pandoc
` pandoc –standalone –template /mnt/data/SYS/config/pandoc/template.html –metadata title=”mainpage.md” –metadata date=”2022-05-28” main-page.md -o main-page.html
- \$body\$ zal worden vervangen door de inhoud van de md file
- de metadata zoals $\title\$ zullen vervangen worden door param op de cmdline
- ofwel door een yaml header in de md (maar cmdline param hebben prio boven yaml )