-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted <br />
are inserted when using eqnBlockTemplate
with HTML output
#415
Comments
Seems that it is intended that we should use raw blocks. tableEqns: true
eqnBlockTemplate: '`<table><tr><td>`{=html}$$t$$`</td><td>`{=html}$$i$$`</td></tr></table>`{=html}' |
So there's some weirdness in the parser, but the ---
tableEqns: true
eqnBlockTemplate: |
<table><tr><td>$$t$$</td><td>$$i$$</td></tr></table>
---
$$e^{i\pi} = -1$${#eq:eq}
@eq:eq nets us <div id="eq:eq">
<table>
<tr>
<td>
<span
class="math display"><em>e</em><sup><em>i</em><em>π</em></sup> = − 1</span>
</td>
<td>
<span class="math display">(1)</span>
</td>
</tr>
</table>
</div>
<p>eq. 1</p> |
Is it a problem with the YAML parser? |
Dunno, but AFAICT it's on the pandoc side. If you feed the following Markdown ---
eqnBlockTemplate: <table><tr><td>$$t$$</td><td>$$i$$</td></tr></table>
--- into Pandoc
Meta
{ unMeta =
fromList
[ ( "eqnBlockTemplate"
, MetaInlines
[ RawInline (Format "html") "<table>"
, LineBreak
, RawInline (Format "html") "<tr>"
, LineBreak
, RawInline (Format "html") "<td>"
, LineBreak
, Math DisplayMath "t"
, LineBreak
, RawInline (Format "html") "</td>"
, LineBreak
, RawInline (Format "html") "<td>"
, LineBreak
, Math DisplayMath "i"
, LineBreak
, RawInline (Format "html") "</td>"
, LineBreak
, RawInline (Format "html") "</tr>"
, LineBreak
, RawInline (Format "html") "</table>"
]
)
]
}
[]
You can also notice it's treating tags as inline, which it doesn't if you use multiline syntax. The |
test.yml:
test.md:
Command:
Output:
The text was updated successfully, but these errors were encountered: