"Can't Parse Coordinate" Error when Importing HTML to Presentation in C#

In Aspose.Slides.Net v24.9.0:

We have the below html which causes a ‘Can’t parse coordinate’ when setting it from (ParagraphCollection) .AddFromHtml.

<p>This is a test.</p><p>This is a list of items</p><ul class="ak-ul" data-indent-level="2" style="margin-top: var(--ds-space-050,4px); margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: var(--ed--list--item-counter--padding,24px); list-style-type: circle; display: flow-root; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; white-space-collapse: preserve;"><li><p data-renderer-start-pos="1746" style="margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; letter-spacing: -0.005em; font-size: 1em; line-height: 1.714;">ABC 123</p></li><li style="margin-top: var(--ds-space-050,4px);"><p data-renderer-start-pos="1786" style="margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; letter-spacing: -0.005em; font-size: 1em; line-height: 1.714;">XYZ 456</p></li></ul>

The bit that seems to cause the problem is margin-top: var(–ds-space-050,4px)

The stack trace is:

at ()
at .( , String , Single )
at .( , IParagraphFormat , Single , Single , Single )
at .( , IDictionary2 , Single , Single ) at .(String , IDictionary2 )
at .(List`1, Char[] )
at .(String )
at .(String )
at Aspose.Slides.ParagraphCollection.AddFromHtml(String text, IExternalResourceResolver resolver, String uri)
at Aspose.Slides.ParagraphCollection.AddFromHtml(String text)

This appears to be a bug.

The pasted html above is reformatting in the ticket so this is actual html
html sample attached
image.png (10.2 KB)

@tpml,
Thank you for reporting on the issue. I’ve reproduced the problem you described. We apologize for any inconvenience caused.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44701

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you found earlier (filed as SLIDESNET-44701) have been fixed in Aspose.Slides for .NET 24.10 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.