Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested tables in lists get mangled #14

Open
nvillahermosa opened this issue Nov 16, 2017 · 1 comment
Open

Nested tables in lists get mangled #14

nvillahermosa opened this issue Nov 16, 2017 · 1 comment

Comments

@nvillahermosa
Copy link

nvillahermosa commented Nov 16, 2017

Hello again!

While I continue busily pushing the envelope of your excellent script, I've discovered a consistent issue with tables nested in (ordered) lists. The script creates the following, comments mine:

<li> Enter the following:
<table>
                    <tbody>
                        <tr>
                            <td>
                                <strong>Heading Cell 1</strong>
                            </td>
                        </tr>
                    </tbody>
                </table>
    </li>
</ol> <-- creates a closing tag
<p>
    <strong>Heading Cell 2</strong> <-- heading gets its own paragraph
</p>
<p> <-- contents get dumped here
    Row 1 Cell 1Row 1 Cell 2
    Row 2 Cell 1Row 2 Cell 2
    Row 3 Cell 1Row 3 Cell 2</p>
<ol> <-- opens a new list for the following step
@evbacher
Copy link
Owner

Yeah, there are a number of issues here. Thanks for noticing this case.

Did you convert to Markdown or HTML?

In my testing, a table that's indented under a list item, when converted to Markdown, is not indented to be under the containing list item. The same table, converted to HTML, also is not indented, but the following list item is indented to the next level. This is a bug with the HTML conversion that I'll work on next.

The table-in-list-item is a relative edge case, but I'll check it out eventually.

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

No branches or pull requests

2 participants