Skip to content

Make nested list compliant with w3c standards#107

Open
duylecampos wants to merge 2 commits intojpuri:masterfrom
tangelo-ai:master
Open

Make nested list compliant with w3c standards#107
duylecampos wants to merge 2 commits intojpuri:masterfrom
tangelo-ai:master

Conversation

@duylecampos
Copy link

The getListMarkup doesn't convert the draftjs block to a w3c compliant nested list.

Transformation result

<ul>
    <li>1</li>
    <li>2</li>
    <ul>
        <li>2-1</li>
        <li>2-2</li>
    </ul>
    <li>3</li>
</ul>

Expected W3C compliant

<ul>
    <li>1</li>
    <li>2
        <ul>
            <li>2-1</li>
            <li>2-2</li>
        </ul>
    </li>
    <li>3</li>
</ul>

A validation can be done on https://validator.w3.org/nu/#textarea
Here the result using the library output:
Screenshot from 2022-03-09 13-01-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants