aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-04-23 11:10:29 -0400
committerBenjamin Linskey2026-04-23 11:10:29 -0400
commit1c6ff85f85664e5e8ffd87218db3929f928d2ee1 (patch)
tree07bfa9d10364269d548f448d328a0b2283ea9632
parente41b4e5d8b96b813d599b6d2082b5f3c018c0fe5 (diff)
downloadcgit-md-filter-1c6ff85f85664e5e8ffd87218db3929f928d2ee1.tar.gz

Add readme

-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c8f1630
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+# Lowdown Markdown filter
+
+This is a simple Markdown filter for cgit. The substantive parts of the file
+are copied verbatim from the example in `lowdown_file(3)`, with the
+`LOWDOWN_STANDALONE` flag removed so that the program outputs an HTML fragment
+rather than a full document.
+
+This requires the `lowdown` package on OpenBSD. Run `make install` to compile
+the program and install it at `/var/www/bin/md-filter`. Add the following line
+to the `cgitrc` file to enable the filter:
+
+ about-filter=/bin/md-filter
+
+## See also
+
+- `lowdown(3)`
+- `lowdown(5)`
+- `lowdown_file(3)`
+- `cgitrc(5)`