镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Empty cell is not generated???? #476

Closed

Description

@xiaofengzang

I have following mark down file which has a table, notice the 3rd column does not have value, and is empty

Header1 Header2 Header3 Header4
value1 value2 value4

it generates following html, notice it has 3 cells, I would expect there is an empty after value2. Anyone know what could be issue here?

..............
value1 value2 value4

Activity

  1. suan commented on Jan 4, 2015

    @suan

    +1

    This issue is preventing me from using marked for instant-markdown-d

  2. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member
  3. Feder1co5oave commented on Jan 25, 2018

    @Feder1co5oave
    Contributor

    Can't reproduce this without the markdown source you're feeding marked.
    I tried something like this and it is parsed as expected:

    | h1 | h2 | h3 | h4 |
    | -- | -- | -- | -- |
    | c1 | c2 |    | c4 |
    <table>
    <thead>
    <tr>
    <th>h1</th>
    <th>h2</th>
    <th>h3</th>
    <th>h4</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>c1</td>
    <td>c2</td>
    <td></td>
    <td>c4</td>
    </tr>
    </tbody>
    </table>
  4. kaelig commented on Jun 28, 2018

    @kaelig

    Seems like this is still happening.

    See https://marked.js.org/demo/?text=%7C%20a%20%7C%20b%20%7C%20c%20%7C%0A%7C%20-%20%7C%20-%20%7C%20-%20%7C%0A%7C%20a%20%7C%20%20%20%7C%20c%20%7C%0A

    | a | b | c |
    | - | - | - |
    | a |   | c |

    Care to reopen?


    Workaround

    Add &nbsp; in the empty cell:

    See result

    | a | b | c |
    | - | - | - |
    | a | &nbsp; | c |
  5. UziTech commented on Jun 28, 2018

    @UziTech
    Member

    @kaelig this was fixed in #1262 which has not been released yet

  6. kaelig commented on Jun 28, 2018

    @kaelig

    Oh great! Thank you!

  7. SilentGert commented on Aug 15, 2018

    @SilentGert

    Hi,
    I'm running into the same issue. Is there already a timeframe when the patch will be released?

    Thanks

  8. styfle commented on Aug 15, 2018

    @styfle
    Member

    /cc @joshbruce - the Release Wrangler

  9. joshbruce commented on Aug 15, 2018

    @joshbruce
    Member

    @styfle: Are all the PRs we want in 0.5.0 in? I know we run on continuous delivery but we also tend to have a few more submitted before actually performing the release.

    /cc @UziTech @davisjam

  10. styfle commented on Aug 15, 2018

    @styfle
    Member

    I'm happy now that we landed #1315

    Ship it :shipit:

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions