Michal Hoftich submitted an update to the
luaxml
package.
Version: 0.2a 2024-10-17 License: other-free
Summary description: Lua library for reading and serialising XML files
Announcement text: ----------------------------------------------------------------------
New features:
New LaTeX package:
- added LaTeX package, luaxml.sty. It can process HTML and XML files using declared rules and insert the converted content into the document directly in the LuaLaTeX run.
Example of conversion of incomplete HTML code to LaTeX:
LXMLRule{h1}|section*{%s}| LXMLRule[verbatim]{pre}|egin{verbatim}
egin{LXMLCode*}{} <html> <h1>Something</h1> <pre> hello text multiline at the end end{LXMLCode*}
The result:
section*{Something} egin{verbatim}
hello text multiline at the end end{verbatim}
Other news:
The luaxml-domobject library:
- added new functions for inserting XML and HTML code into the DOM tree, inspired by JavaScript's Element:innerHTML() and Element:insertAdjacentHTML() methods.
Bug fixes:
The luaxml-mod-html library:
- don't drop elements after incorrectly closed elements
----------------------------------------------------------------------
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/luaxml
The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/generic/luaxml/
------------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team Petra Rübe-Pugliese
------------------------------------------------------------------------
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs