git.iko.soy/typeable/pandoc
on master help sign in
Insert CDATA around inline js/css in html and slidy templates.
commit8cd8b19598fa898498a7883d081f51615aa5fc12 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 24 Jul 2011, 08:23 (15 years ago) parent8cb5fef
2 files changed+10−2
default.html+2 default.slidy+8−2
default.html+2
@@ -26,7 +26,9 @@ $if(html5)$
2626$endif$
2727$if(highlighting-css)$
2828 <style type="text/css">
29+/*<![CDATA[*/
2930$highlighting-css$
31+/*]]>*/
3032 </style>
3133$endif$
3234$for(css)$
default.slidy+8−2
@@ -14,12 +14,16 @@ $endif$
1414$if(highlighting-css)$
1515 <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
1616 <style type="text/css">
17+/*<![CDATA[*/
1718$highlighting-css$
19+/*]]>*/
1820 </style>
1921$endif$
2022$if(slidy-css)$
2123 <style type="text/css">
24+/*<![CDATA[*/
2225$slidy-css$
26+/*]]>*/
2327 </style>
2428$else$
2529 <link rel="stylesheet" type="text/css" media="screen, projection, print"
@@ -36,9 +40,11 @@ $for(header-includes)$
3640 $header-includes$
3741$endfor$
3842$if(slidy-js)$
39− <script type="text/javascript" charset="utf-8">
43+<script type="text/javascript" charset="utf-8">
44+/*<![CDATA[*/
4045$slidy-js$
41− </script>
46+/*]]>*/
47+</script>
4248$else$
4349 <script src="http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz"
4450 charset="utf-8" type="text/javascript"></script>