aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorPhilip Pesca <phil.pesca@gmail.com>2019-07-23 12:21:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-23 12:21:31 -0700
commitbc508534a648b900c683e60b1cc9681ed606a723 (patch)
tree99e6aca4fb752472e7cb9964ddcb40358bdea69c /test/command
parentdb5f6dd4fe6e17dc67719f85847f569839cd3169 (diff)
downloadpandoc-bc508534a648b900c683e60b1cc9681ed606a723.tar.gz
HTML writer: render inline formulas correctly with --webtex (#5656)
We add `\textstyle` to the beginning of the formula to ensure it will be rendered in inline style. Closes #5655.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5655.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/5655.md b/test/command/5655.md
new file mode 100644
index 000000000..de5a923ae
--- /dev/null
+++ b/test/command/5655.md
@@ -0,0 +1,14 @@
+````
+% pandoc --webtex
+$T_n={n+1 \choose 2}$
+^D
+<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" /></p>
+````
+
+````
+% pandoc --webtex
+$$T_n={n+1 \choose 2}$$
+^D
+<p><br /><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" /><br /></p>
+````
+