From e8ad4ba43c7c187a5b6ee6025bc6039488d7f420 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 11 Jan 2011 20:37:06 -0800 Subject: Preliminary support for HTML5. + Added writerHtml5 writer option. + Added --html5 option. + Added support for lang in html tag (so you can do 'pandoc -s --V lang=en', for example). + Updated html template with conditionals for HTML5. + When HTML5 selected, use
tag around title in document, and use
tags instead of
s if --section-divs specified. --- templates/html.template | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'templates/html.template') diff --git a/templates/html.template b/templates/html.template index bd1864ff0..eabda4f44 100644 --- a/templates/html.template +++ b/templates/html.template @@ -1,8 +1,17 @@ +$if(html5)$ + + +$else$ - + +$endif$ $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ +$if(html5)$ + +$else$ +$endif$ $for(author)$ @@ -16,7 +25,7 @@ $highlighting-css$ $endif$ $for(css)$ - + $endfor$ $if(math)$ $math$ @@ -30,7 +39,13 @@ $for(include-before)$ $include-before$ $endfor$ $if(title)$ +$if(html5)$ +
+$endif$

$title$

+$if(html5)$ +
+$endif$ $endif$ $if(toc)$ $toc$ -- cgit v1.2.3