cmark

My personal build of CMark ✏️

Commit
eb14dda8e8ffc755b0837e0bc2bb9c62281287d7
Parent
0b817259d80d4c340ddba4c83386de9c164d87df
Author
John MacFarlane <jgm@berkeley.edu>
Date

Use template for HTML version of README.

Diffstat

2 files changed, 5 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified Makefile 2 1 1
Modified template.html 4 4 0
diff --git a/Makefile b/Makefile
@@ -9,7 +9,7 @@ PROG=./stmd
 all: $(SRCDIR)/case_fold_switch.c $(PROG)
 
 README.html: README.md
-	pandoc -S -s -t html5 -o $@ $<
+	pandoc --template template.html -S -s -t html5 -o $@ $<
 
 spec: test spec.html
 
diff --git a/template.html b/template.html
@@ -53,8 +53,12 @@ a.footnoteRef > sup {
 </style>
 </head>
 <body>
+$if(title)$
 <h1 class="title">$title$</h1>
+$endif$
+$if(version)$
 <div class="version">Version $version$ ($date$)</div>
+$endif$
 <div class="authors">
 $for(author)$<span class="author">$author$</span>$sep$; $endfor$
 </div>