about summary refs log tree commit diff
path: root/tools/lowdown-f
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-15 09:59:08 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-15 09:59:08 +0100
commit5dbd7402179201ddc39ece8b0e5a7e6de5c0a17a (patch)
tree7104ecd2a8e6b8684d3ef2027c08addf8cc85c71 /tools/lowdown-f
parent20f8b9405915e227d8868e32ec2bc89a145bcff4 (diff)
downloadkronika-5dbd7402179201ddc39ece8b0e5a7e6de5c0a17a.tar.gz
kronika-5dbd7402179201ddc39ece8b0e5a7e6de5c0a17a.zip
Add lowdown-f
Diffstat (limited to 'tools/lowdown-f')
-rwxr-xr-xtools/lowdown-f5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lowdown-f b/tools/lowdown-f
new file mode 100755
index 0000000..b64be88
--- /dev/null
+++ b/tools/lowdown-f
@@ -0,0 +1,5 @@
+#!/bin/sh
+## Frontmatter wrapper for lowdown
+
+tail -n +$(($(sed -n '/---/,/---/p' $1 | wc -l)+1)) $1 | \
+      lowdown --html-no-skiphtml --html-no-escapehtml