Closed teepeemm closed 1 year ago
I think this issue also overlaps today's request for "custom tags" from the mailing list by @davpoole .
ltx:rawhtml
was always meant as a short-term stopgap solution until new HTML markup becomes supported by ltx:
native constructs in the latexml XML schema and post-processing, and I hope we can resolve any regressions before the next release. Mostly raising attention for David's sake (and making a note here that we may want to advertise rawhtml
more in the Customization chapter of the manual)
Custom tags (especially a div.class
) also shows up in #1835.
I'm not sure that I understand the thinking behind aiming to phase out ltx:rawhtml
. That would seem to mean that we would have a way to render any valid html. But that would require covering the entire html spec, at which point, it would be much easier to keep ltx:rawhtml
and leave it up to the user to only provide valid html. Actually, it's probably even better to change that to ltx:rawxml
, and require that the enclosed xml have a registered namespace.
Thanks for the nice debugging; the git bisect pointed exactly to the changes what caused the problem and I was able to easily fix it. (patch coming up...)
There's no intention of rawhtml
going away, although it ought not be overused, in particular not in #1835, imho. Nor is there an intention to reencode all html. It is useful in a pinch, however. An ltx:rawxml
would be a slightly different beast, I think. You'd still need to supply the XSLT that transform it into html or other formats, so might as well figure how to modify the schema to include it in the right places.
I'm pretty sure that this
used to work (for example, back when you helped me with #1007). But now I'm getting the xml
<xhtml:iframe/>
and losing any attributes. If I understood git bisect correctly, I think this started with #19602313ec53706e5ac3c6cb41147ffdd024fac20985
on 2022-10-20, and looking through the committed files, it does seem plausible. Can I adjust my function call in some way to make this work?