Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

HTML Table does not render if there's blank line inside markup #2011

Description

@d4nyll

Current behavior

Given the following input:

<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    </tr>
  </thead>
  
  <tbody>
    <tr>
      <td>Field 1</td>
      <td>Field 2</td>
      <td>Field 3</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Field 1</td>
      <td>Field 2</td>
      <td>Field 3</td>
    </tr>
  </tbody>
</table>

I am getting the following preview:

screenshot from 2018-05-30 09-52-45

Only the second table renders properly. The first table does not render properly.

Expected behavior

Both tables to render correctly.

Steps to reproduce

  1. Create a new Markdown Note
  2. Paste the above markup in the editor

Environment

  • Version : 0.11.4
  • OS Version and name : Ubuntu 17.10

Activity

  1. IssueHuntBot commented on Jun 20, 2018

    @IssueHuntBot

    @BoostIO funded this issue with $10. Visit this issue on Issuehunt

  2. IssueHuntBot commented on Aug 29, 2018

    @IssueHuntBot
  3. IssueHuntBot commented on Aug 29, 2018

    @IssueHuntBot
  4. daiyam commented on Aug 29, 2018

    @daiyam
    Contributor

    The bug is due to CommonMark (HTML-Block condition 6) which markdown-it is following at the letter.
    remark doesn't suffer from this issue. So it should be fixed when #1563 is done.

  5. added
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    and removed
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    on Jul 25, 2019
  6. shriram-svg commented on May 11, 2026

    @shriram-svg

    Submitted a fix for this funded issue: #3791

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions