From: Lady Date: Wed, 17 Sep 2025 02:57:28 +0000 (-0400) Subject: Support attributes inside of links X-Git-Tag: 0.5.2^0 X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/HEAD?hp=e2c9b502e68c218acca2d3c059139f49a2ff74c2 Support attributes inside of links This commit changes the partitioning behaviour to allow for element nodes within the first part, assuming that the first part is not being restricted to an n·c·name. This is required to enable attribute specifiers inside of the text of links. Element nodes are still not allowed in the second part of the partition (the link target or attribute value). --- diff --git a/parser.xslt b/parser.xslt index 01889de..bcc8a23 100644 --- a/parser.xslt +++ b/parser.xslt @@ -1056,42 +1056,73 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + - + - + + - - - - + + + + + + - + - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + @@ -1115,9 +1146,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one + + + - + @@ -1128,7 +1162,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + @@ -1172,7 +1206,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + @@ -1278,11 +1312,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + - +