diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-03-05 19:25:48 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-03-05 19:25:48 +0000 |
commit | ce567a174835644d29f3b7f4a4626f07dfb05b0a (patch) | |
tree | 4ade54ab126046515fda0dc959f6d40bbaa71607 /convert_md_to_asciidoc.sh | |
parent | downgraded mongo to v6 for now (diff) | |
download | blog-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 'convert_md_to_asciidoc.sh')
-rwxr-xr-x | convert_md_to_asciidoc.sh | 6 |
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 |