about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rwxr-xr-xtools/lowdown-f5
2 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 6e0a249..bd597a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,5 @@ node_modules
 package-lock.json
 *.in
 
-lowdown*
-cpio*
+/lowdown*
+/cpio*
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