CTAN update: luaxml

CTAN Announcements <[email protected]>
Newsgroups gmane.comp.tex.ctan.announce
Organization CTAN
Message-ID <ZxKsHbIvwoiZ_TZo@prptp>
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}|\begin{verbatim}

\begin{LXMLCode*}{}
<html>
<h1>Something</h1>
<pre>
hello
  text
  multiline at the end
\end{LXMLCode*}

The result:

\section*{Something}
\begin{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
_______________________________________________
Ctan-ann mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.