Marked: Empty cell is not generated????

Created on 15 Aug 2014  路  10Comments  路  Source: markedjs/marked

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

All 10 comments

+1

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

980

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 |

~~~html

h1 h2 h3 h4
c1 c2 c4

~~~

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   in the empty cell:

See result

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

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

Oh great! Thank you!

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

Thanks

/cc @joshbruce - the Release Wrangler

@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

I'm happy now that we landed #1315

Ship it :shipit:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FireflyAndStars picture FireflyAndStars  路  3Comments

james4388 picture james4388  路  3Comments

pigtooter picture pigtooter  路  4Comments

samit4me picture samit4me  路  3Comments

priyesh-diukar picture priyesh-diukar  路  3Comments