Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2015-05-16 02:00:03 -0400
committerMike Gerwitz <mtg@gnu.org>2015-05-16 02:00:03 -0400
commit508981884a9edc82e65452d911e36b416acb49ca (patch)
tree538e068195c09c0df9be8c2cecb575256016c565 /tools
parent6b42aef7a160f4a993d2908e9a915572ede89570 (diff)
downloadthoughts-508981884a9edc82e65452d911e36b416acb49ca.tar.gz
thoughts-508981884a9edc82e65452d911e36b416acb49ca.tar.bz2
thoughts-508981884a9edc82e65452d911e36b416acb49ca.zip
Markdown support for pages
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mdfmt22
-rwxr-xr-xtools/thoughts-fmt3
2 files changed, 23 insertions, 2 deletions
diff --git a/tools/mdfmt b/tools/mdfmt
new file mode 100755
index 0000000..2f6fe9b
--- /dev/null
+++ b/tools/mdfmt
@@ -0,0 +1,22 @@
+#!/bin/bash
+# Formatter for Markdown
+#
+# Copyright (C) 2015 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# This processes works written in Markdown.
+##
+
+exec pandoc -S -fmarkdown -thtml5
diff --git a/tools/thoughts-fmt b/tools/thoughts-fmt
index f95f64f..2bd19a6 100755
--- a/tools/thoughts-fmt
+++ b/tools/thoughts-fmt
@@ -51,5 +51,4 @@ test "$timestamp" -gt "$md_cutoff" \
|| fmt-old
# it's just that simple.
-exec pandoc -S -fmarkdown -thtml5
-
+exec "$(dirname "$0" )"/mdfmt