Add XML support

This commit is contained in:
HiPhish 2023-12-31 00:37:53 +01:00
parent a249476e45
commit 1ed4613437
3 changed files with 48 additions and 0 deletions

View file

@ -9,6 +9,15 @@ is based on `Keep a Changelog`_ and this project adheres to `Semantic
Versioning`_.
Unreleased
##########
Added
=====
- XML support
[0.3.0] 2023-12-24
##################

View file

@ -0,0 +1,15 @@
(element
(STag
"<" @delimiter
(Name) @delimiter
">" @delimiter)
(ETag
"</" @delimiter
(Name) @delimiter
">" @delimiter @sentinel))@container
(element
(EmptyElemTag
"<" @delimiter
(Name) @delimiter
"/>" @delimiter @sentinel)) @container

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Example of MathML embedded in an XHTML file</title>
<meta name="description" content="Example of MathML embedded in an XHTML file"/>
</head>
<body>
<h1>Example of MathML embedded in an XHTML file</h1>
<p>
The area of a circle is
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>&#x03C0;<!-- π --></mi>
<mo>&#x2062;<!-- &InvisibleTimes; --></mo>
<msup>
<mi>r</mi>
<mn>2</mn>
</msup>
</math>
.
</p>
</body>
</html>