diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-24 08:23:12 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-24 08:23:12 -0700 |
commit | 8cd8b19598fa898498a7883d081f51615aa5fc12 (patch) | |
tree | 7ac02ede7fb78f83030cd7419737dfe0d7e07f45 | |
parent | 8cb5fef740725ee51ffed5022faa097f21336bcd (diff) | |
download | pandoc-8cd8b19598fa898498a7883d081f51615aa5fc12.tar.gz |
Insert CDATA around inline js/css in html and slidy templates.
-rw-r--r-- | default.html | 2 | ||||
-rw-r--r-- | default.slidy | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/default.html b/default.html index 387e4eb7d..d107f4809 100644 --- a/default.html +++ b/default.html @@ -26,7 +26,9 @@ $if(html5)$ $endif$ $if(highlighting-css)$ <style type="text/css"> +/*<![CDATA[*/ $highlighting-css$ +/*]]>*/ </style> $endif$ $for(css)$ diff --git a/default.slidy b/default.slidy index 8db862c9e..85983a8bc 100644 --- a/default.slidy +++ b/default.slidy @@ -14,12 +14,16 @@ $endif$ $if(highlighting-css)$ <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title> <style type="text/css"> +/*<![CDATA[*/ $highlighting-css$ +/*]]>*/ </style> $endif$ $if(slidy-css)$ <style type="text/css"> +/*<![CDATA[*/ $slidy-css$ +/*]]>*/ </style> $else$ <link rel="stylesheet" type="text/css" media="screen, projection, print" @@ -36,9 +40,11 @@ $for(header-includes)$ $header-includes$ $endfor$ $if(slidy-js)$ - <script type="text/javascript" charset="utf-8"> +<script type="text/javascript" charset="utf-8"> +/*<![CDATA[*/ $slidy-js$ - </script> +/*]]>*/ +</script> $else$ <script src="http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz" charset="utf-8" type="text/javascript"></script> |