|author||Mike Gerwitz <firstname.lastname@example.org>||2015-05-16 02:00:03 -0400|
|committer||Mike Gerwitz <email@example.com>||2015-05-16 02:00:03 -0400|
Markdown support for pages
Diffstat (limited to 'tools')
2 files changed, 23 insertions, 2 deletions
diff --git a/tools/mdfmt b/tools/mdfmt
new file mode 100755
@@ -0,0 +1,22 @@
+# 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
@@ -51,5 +51,4 @@ test "$timestamp" -gt "$md_cutoff" \
# it's just that simple.
-exec pandoc -S -fmarkdown -thtml5
+exec "$(dirname "$0" )"/mdfmt