aboutsummaryrefslogtreecommitdiffstats
path: root/convert_md_to_asciidoc.sh
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-03-05 19:25:48 +0000
committerterminaldweller <devi@terminaldweller.com>2024-03-05 19:25:48 +0000
commitce567a174835644d29f3b7f4a4626f07dfb05b0a (patch)
tree4ade54ab126046515fda0dc959f6d40bbaa71607 /convert_md_to_asciidoc.sh
parentdowngraded mongo to v6 for now (diff)
downloadblog-ce567a174835644d29f3b7f4a4626f07dfb05b0a.tar.gz
blog-ce567a174835644d29f3b7f4a4626f07dfb05b0a.zip
added a new script to conevrt all md to asciidoc, rss feed now sends the entire asciidoc for the teaser
Diffstat (limited to '')
-rwxr-xr-xconvert_md_to_asciidoc.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/convert_md_to_asciidoc.sh b/convert_md_to_asciidoc.sh
new file mode 100755
index 0000000..bec8985
--- /dev/null
+++ b/convert_md_to_asciidoc.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+for markdown in ./mds/*.md; do
+ name=$(basename -s ".md" ${markdown})
+ pandoc -t asciidoc -f markdown ${markdown} > ./mds/${name}.txt
+done