cmark

My personal build of CMark ✏️

Commit
388b70aac60e9058e86ab922ab95d254e9f64a7b
Parent
b510c424c2fc389f99bca3dab0039e5170efdcb7
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed watermark.

- No longer shows blank watermark on recent version. - Fixed broken Makefile.

Diffstat

2 files changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 5 3 2
Modified template.html 1 0 1
diff --git a/Makefile b/Makefile
@@ -91,10 +91,11 @@ fuzztest:
 
 _site/spec.html: spec.txt
 	(echo "% CommonMark Spec\n";\
-	for vers in $(shell cd _site; ls -d -t 0.*) ; do \
+	 for vers in $(shell cd _site; ls -d -t 0.*) ; do \
+	   perl -pie 's/<div id="watermark"><\/div>/<div id="watermark" style="background-color:black">This is an older version of the spec. For the most recent version, see <a href="http:\/\/spec.commonmark.org">http:\/\/spec.commonmark.org<\/a>.<\/div>/' _site/$$vers/index.html ; \
 	  date=`stat -t "%Y-%m-%d" -f "%Sa" _site/$$vers/index.html`; \
 	  echo "- [Version $$vers ($$date)](/$$vers/)" ; \
-	  perl -pe 's/<div id="watermark"><\/div>/<div id="watermark">This is an older version of the spec. For the most recent version, see <a href="http:\/\/spec.commonmark.org">http:\/\/spec.commonmark.org<\/a>.<\/div>/' _site/$$vers/index.html; \ done) | \
+	  done) | \
 	pandoc --template template.html -S -s -t html5 -o $@
 
 _site/index.html: _site/spec.html
diff --git a/template.html b/template.html
@@ -55,7 +55,6 @@ pre.html span.space:after {
  font-size: 120%;
  opacity:0.7;
  z-index:99;
- background-color: black;
  color: white;
 }
 #watermark a { color: white; }