Markdown-preview-enhanced: Feature Request: Extended table notation to express merged cell

Created on 13 Sep 2016  Â·  12Comments  Â·  Source: shd101wyy/markdown-preview-enhanced

The package is really useful for me to write documents. I appreciate your efforts.

I would like to write tables with merged cell in markdown documents as below.

table_1
horizontal merged cell
vertical merged cell data 1
data 2

I know that Markdown does not support this feature, so that I think that is good to implement in code block just like other extended features in this package, PlantUML, Viz.js, Mermaid and so on.
I also know that merged cell can be written by Latex, but I must type so many characters in this notation...

I propose two notation for merged cell, table notation of "textile" and "Seesaa[*] wiki".
For example, in textile notation, you can write a table with merged cell as below.

|\2. horizontal merged cell |
|/2. vertical merged cell | data1 |
|data2|

The code is rendered as above _table_1_. "\n." means n columns are merged, "/n." means n rows are merged.

In Seesaa wiki notation,

| > | horizontal merged cell        |
| vertical merged cell      | data1 |
| ^                        | data2 |

The code is also rendered as above _table_1_. ">" means the cell are merged the right cell. "^" means the cell are merged the upper cell.

In textile notation, we must know and set the number of merged cell, so it maybe a little bit of a pain to add a new row or column.
In Seesaa wiki notation, it is very easy to add a new merged row or column. But the notation is not known globally. It maybe well-known notation in actual but I have not known...

If possible, I prefer to use Seesaa's notation to merge cells.
I would appreciate if you will adopt my proposal.
Thank you for reading the long text.

Most helpful comment

Hi @moriyas1984 , sorry for me super late reply.
The feature that you request is now supported :)

screen shot 2017-07-15 at 8 16 45 pm

You can enable it from package settings:

screen shot 2017-07-16 at 1 52 14 am

Cheers :)

All 12 comments

Hi @moriyas1984 , thanks for your reply

I am busy recently, but I will try to implement the Seesaa's notation that you mentioned when I am free.

Thanks :)

Thank you so much! I would like to express my respect and appreciation for you ;)

Hi @moriyas1984 , sorry for me super late reply.
The feature that you request is now supported :)

screen shot 2017-07-15 at 8 16 45 pm

You can enable it from package settings:

screen shot 2017-07-16 at 1 52 14 am

Cheers :)

nvm it's a bit buggy now.

Seems that this is not supported in pandoc?

Nope. And it's buggy now.

On Mon, Jul 17, 2017 at 1:13 AM WANG Aiyong notifications@github.com
wrote:

Seems that this is not supported in pandoc?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/shd101wyy/markdown-preview-enhanced/issues/133#issuecomment-315674832,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0gf96kq667fzkXNdMoJ83vOKxAyvHEks5sOvt-gaJpZM4J7Roe
.

I think markdown is so nice because its "source code" can be as readable as the rendered html.

For the column merge it may be better to opt for a syntax more or less standard:
http://fletcher.github.io/MultiMarkdown-5/tables.html

@shd101wyy, I'm so happy that you remember my request!
It seems to be very nice for me, thanks!

But I also see what @cdsousa writes.
To conform a standard is so important to have many people use the package.

For the moment, people can select whether he use the feature by the checkbox, and I think that is enough.

Yes you guys are correct.

can it work in vs code?

Yes. Atom and vscode versions are basically the same.

Hi @moriyas1984 , sorry for me super late reply.
The feature that you request is now supported :)

screen shot 2017-07-15 at 8 16 45 pm

You can enable it from package settings:

screen shot 2017-07-16 at 1 52 14 am

Cheers :)

I wish it was as good as it seemed here. It merges anything that doesn't have a value with the previous cell which is undesired and I think this is why the developer built a configuration for it. I still want to merge explicit cells not everything that has no values.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shd101wyy picture shd101wyy  Â·  4Comments

rcmalli picture rcmalli  Â·  4Comments

saeidamiri1 picture saeidamiri1  Â·  3Comments

lambdafu picture lambdafu  Â·  3Comments

fengxs269 picture fengxs269  Â·  4Comments