Skip to content

Newlines in a table #238

@justanotheranonymoususer

Description

Consider this input:

<table>
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>
    <div>Cell 4-1</div>
    <div>Cell 4-2</div>
</td></tr>
</table>

Current output is:

|  |  |
| --- | --- |
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4-1  Cell 4-2 |

I'd like to get:

|  |  |
| --- | --- |
|Cell 1 | Cell 2 |
|Cell 3 | Cell 4-1<br>Cell 4-2 |

Rendered in GitHub as:

Cell 1 Cell 2
Cell 3 Cell 4-1
Cell 4-2

Since <br> isn't standard markdown, make it optional, but provide a way of doing it. I tried using convert_td hook but it seems to already get the text without the newline.

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