diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-07-13 19:30:10 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-07-13 19:30:10 -0700 |
commit | a59a14190686ceab44e8dd2ccb7d061f281f929f (patch) | |
tree | de5733079a2bfd81ecf1863157c9dda23f45d637 | |
parent | 71b4700669162ea904a78c80d4f236d4ca13303f (diff) | |
download | pandoc-a59a14190686ceab44e8dd2ccb7d061f281f929f.tar.gz |
Put insert-before text before the title h1 in HTML.
+ This is the documented behavior; the insert-before text
comes after the <body> tag.
+ Resolves Issue #241.
-rw-r--r-- | templates/html.template | 6 | ||||
-rw-r--r-- | tests/s5.inserts.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/html.template b/templates/html.template index 820279939..1d07a2cfb 100644 --- a/templates/html.template +++ b/templates/html.template @@ -41,12 +41,12 @@ $for(header-includes)$ $endfor$ </head> <body> -$if(title)$ -<h1 class="title">$title$</h1> -$endif$ $for(include-before)$ $include-before$ $endfor$ +$if(title)$ +<h1 class="title">$title$</h1> +$endif$ $if(toc)$ $toc$ $endif$ diff --git a/tests/s5.inserts.html b/tests/s5.inserts.html index 0af12ffaa..69ab6f5e1 100644 --- a/tests/s5.inserts.html +++ b/tests/s5.inserts.html @@ -11,8 +11,8 @@ STUFF INSERTED </head> <body> -<h1 class="title">My S5 Document</h1> STUFF INSERTED +<h1 class="title">My S5 Document</h1> <div id="first-slide" ><h1 >First slide</h1 |