aboutsummaryrefslogtreecommitdiff
path: root/test/writer.html4
diff options
context:
space:
mode:
authorLila <lila91142@gmail.com>2020-05-19 07:45:44 +0200
committerGitHub <noreply@github.com>2020-05-18 22:45:44 -0700
commitf4185fcef0aa5c00e37a1bf8bbc8b8c6459fffe7 (patch)
tree4a09047038b339afef449f0b2b0591271afe0087 /test/writer.html4
parent57fa394eb0afbc8368091b9c90e132e29e2b72aa (diff)
downloadpandoc-f4185fcef0aa5c00e37a1bf8bbc8b8c6459fffe7.tar.gz
Use CSS in favor of <br> for display math (#6372)
Some CSS to ensure that display math is displayed centered and on a new line is now included in the default HTML-based templates; this may be overridden if the user wants a different behavior.
Diffstat (limited to 'test/writer.html4')
-rw-r--r--test/writer.html43
1 files changed, 2 insertions, 1 deletions
diff --git a/test/writer.html4 b/test/writer.html4
index 80106bd56..56b78dfb1 100644
--- a/test/writer.html4
+++ b/test/writer.html4
@@ -15,6 +15,7 @@
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
+ .display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
</head>
<body>
@@ -432,7 +433,7 @@ Blah
<li><span class="math inline"><em>α</em> ∧ <em>ω</em></span></li>
<li><span class="math inline">223</span></li>
<li><span class="math inline"><em>p</em></span>-Tree</li>
-<li>Here’s some display math: <br /><span class="math display">$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$</span><br /></li>
+<li>Here’s some display math: <span class="math display">$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$</span></li>
<li>Here’s one that has a line break in it: <span class="math inline"><em>α</em> + <em>ω</em> × <em>x</em><sup>2</sup></span>.</li>
</ul>
<p>These shouldn’t be math:</p>