Skip to content

<u> tag not getting applied in lists when <span> is passed in <u> tag. #112

@Manoj4689

Description

@Manoj4689

Hi @plutext,

When using convert() function in XHtmlImporter to convert html to list of wml objects, I’ve noticed an issue when using underline styles within list items using the following structure:

"<ul><li><u><span>underline </span></u></li></ul>"

The underline is not getting applied to the text inside the tag when used this way. However, similar patterns using and work correctly:

"<ul>
  <li><i><span>italics</span></i></li>
  <li><b><span>bold</span></b></li>
</ul>
"

I suspect this might be because underline in Word supports multiple styles (single, double, dotted, etc.), unlike bold or italic, which are simpler boolean properties. This could be introducing complexity in how underline is parsed or rendered.

Could you please take a look and consider a fix for this?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions