aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-09-18 19:46:40 +0200
committerJulian T <julian@jtle.dk>2019-09-18 19:46:40 +0200
commitceb14fd5301a7156102b62baa9add6c2beed351a (patch)
treeb40610dd20d32df3e3480056f39679ae204c9635
Initial
-rw-r--r--.gitignore1
-rw-r--r--Makefile14
-rw-r--r--index.md3
-rw-r--r--test/test.md5
4 files changed, 23 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2bf6741
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+**/*.html
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a2fd408
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+
+MD_FILES = $(wildcard *.md) $(wildcard */*.md)
+HTML_FILES = $(patsubst %.md, %.html, $(MD_FILES))
+
+
+%.html: %.md
+ pandoc $^ --output $@
+
+.PHONY: all clean
+
+all: $(HTML_FILES)
+
+clean:
+ rm -rf $(HTML_FILES)
diff --git a/index.md b/index.md
new file mode 100644
index 0000000..5354437
--- /dev/null
+++ b/index.md
@@ -0,0 +1,3 @@
+# Julian noter
+
+1. [test](test/test.html)
diff --git a/test/test.md b/test/test.md
new file mode 100644
index 0000000..85ef5b9
--- /dev/null
+++ b/test/test.md
@@ -0,0 +1,5 @@
+# Hej med dig
+
+Dette er en test
+
+To *test*