Skip to content

Commit 411119b

Browse files
jgmdaamien
authored andcommitted
Remove unnecessary type="text/css" on style and link for HTML5.
Closes jgm#5146.
1 parent 5096afc commit 411119b

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎data/templates/default.dzslides‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $if(keywords)$
1212
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
1313
$endif$
1414
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
15-
<style type="text/css">
15+
<style>
1616
code{white-space: pre-wrap;}
1717
span.smallcaps{font-variant: small-caps;}
1818
span.underline{text-decoration: underline;}
@@ -22,7 +22,7 @@ $if(quotes)$
2222
$endif$
2323
</style>
2424
$if(highlighting-css)$
25-
<style type="text/css">
25+
<style>
2626
$highlighting-css$
2727
</style>
2828
$endif$

‎data/templates/default.epub3‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8" />
66
<meta name="generator" content="pandoc" />
77
<title>$pagetitle$</title>
8-
<style type="text/css">
8+
<style>
99
code{white-space: pre-wrap;}
1010
span.smallcaps{font-variant: small-caps;}
1111
span.underline{text-decoration: underline;}
@@ -15,12 +15,12 @@ $if(quotes)$
1515
$endif$
1616
</style>
1717
$if(highlighting-css)$
18-
<style type="text/css">
18+
<style>
1919
$highlighting-css$
2020
</style>
2121
$endif$
2222
$for(css)$
23-
<link rel="stylesheet" type="text/css" href="$css$" />
23+
<link rel="stylesheet" href="$css$" />
2424
$endfor$
2525
$for(header-includes)$
2626
$header-includes$

‎data/templates/default.html5‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $if(keywords)$
1414
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
1515
$endif$
1616
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
17-
<style type="text/css">
17+
<style>
1818
code{white-space: pre-wrap;}
1919
span.smallcaps{font-variant: small-caps;}
2020
span.underline{text-decoration: underline;}
@@ -24,7 +24,7 @@ $if(quotes)$
2424
$endif$
2525
</style>
2626
$if(highlighting-css)$
27-
<style type="text/css">
27+
<style>
2828
$highlighting-css$
2929
</style>
3030
$endif$

‎data/templates/default.revealjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $endif$
1717
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
1818
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
1919
<link rel="stylesheet" href="$revealjs-url$/css/reveal.css">
20-
<style type="text/css">
20+
<style>
2121
code{white-space: pre-wrap;}
2222
span.smallcaps{font-variant: small-caps;}
2323
span.underline{text-decoration: underline;}
@@ -27,7 +27,7 @@ $if(quotes)$
2727
$endif$
2828
</style>
2929
$if(highlighting-css)$
30-
<style type="text/css">
30+
<style>
3131
$highlighting-css$
3232
</style>
3333
$endif$

‎test/lhs-test.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta name="generator" content="pandoc" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
77
<title>lhs-test</title>
8-
<style type="text/css">
8+
<style>
99
code{white-space: pre-wrap;}
1010
span.smallcaps{font-variant: small-caps;}
1111
span.underline{text-decoration: underline;}
1212
div.column{display: inline-block; vertical-align: top; width: 50%;}
1313
</style>
14-
<style type="text/css">
14+
<style>
1515
a.sourceLine { display: inline-block; line-height: 1.25; }
1616
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
1717
a.sourceLine:empty { height: 1.2em; }

‎test/lhs-test.html+lhs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta name="generator" content="pandoc" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
77
<title>lhs-test</title>
8-
<style type="text/css">
8+
<style>
99
code{white-space: pre-wrap;}
1010
span.smallcaps{font-variant: small-caps;}
1111
span.underline{text-decoration: underline;}
1212
div.column{display: inline-block; vertical-align: top; width: 50%;}
1313
</style>
14-
<style type="text/css">
14+
<style>
1515
a.sourceLine { display: inline-block; line-height: 1.25; }
1616
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
1717
a.sourceLine:empty { height: 1.2em; }

‎test/writer.html5‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="author" content="Anonymous" />
99
<meta name="dcterms.date" content="2006-07-17" />
1010
<title>Pandoc Test Suite</title>
11-
<style type="text/css">
11+
<style>
1212
code{white-space: pre-wrap;}
1313
span.smallcaps{font-variant: small-caps;}
1414
span.underline{text-decoration: underline;}

0 commit comments

Comments
 (0)