\href and math mode#2739
Conversation
|
Nice initiative, as this synchronizes with another effort. MathML Core is about to introduce a new use for I think we should wait just a little for that change to land in MathML Core, then start emitting these |
|
Btw, the CSS change seems unrelated, and is probably discussed better elsewhere. |
|
Interesting; So, href already works for tokens (handled in But I don't get what the 2nd point is about. The XML and HTML do indeed get a newline between the "foo" and the math element, but that shouldn't cause a linebreak in the display unless there's some other line wrapping going on. |
| text-align:right; } | ||
| .ltx_item .ltx_tag + .ltx_para { | ||
| display:inline-block; vertical-align:top;} | ||
| .ltx_item .ltx_tag + .ltx_para, |
There was a problem hiding this comment.
What is the purpose of this change?
This pull request fixes the behaviour of the
\hrefcommand while in math mode, and of math passed as an argument to\href.$\href{#}{x = y}$did not produce any link. The href attribute was present in the XML file, but not in the HTML. This is fixed by changing the pmml_maybe_resize subroutine in the postprocessor.\item foo \href{#}{$x = y$}(inside an itemize environment) was producing a link, but a linebreak was present betweenfooand the link. This is fixed by changing the css.