Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for merged cells #66

Closed
4 tasks done
Startouf opened this issue Jun 29, 2024 · 4 comments
Closed
4 tasks done

Support for merged cells #66

Startouf opened this issue Jun 29, 2024 · 4 comments
Labels
🙅 no/wontfix This is not (enough of) an issue for this project 👎 phase/no Post cannot or will not be acted on

Comments

@Startouf
Copy link

Initial checklist

Problem

Show table with merged cells (like one header row spanning over two cells)

Currently the following syntax does not work

| **Header spanning two columns ||
| - ||
| column 1 | column 2|

Note that Github does not seem to suport this either :

| **Header spanning two columns ||
| - ||
| column 1 | column 2|

Solution

Support syntaxes allowing t create merged cells

See specs and questions asked on StackOverflow

https://web.archive.org/web/20170905052152/http://fletcher.github.io/MultiMarkdown-5/tables.html
https://stackoverflow.com/questions/46621765/can-i-merge-table-rows-in-markdown

Alternatives

Support pandoc style markdown for tables ?
https://pandoc.org/chunkedhtml-demo/8.9-tables.html

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jun 29, 2024
@wooorm
Copy link
Member

wooorm commented Jun 30, 2024

Hey! This project is called remark-gfm, not remark-multimarkdown or remark-pandoc, so nope, not going to happen.

I recommend not doing this. Use regular GFM tables. Or, use HTML.

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2024
@wooorm wooorm added the 🙅 no/wontfix This is not (enough of) an issue for this project label Jun 30, 2024

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Jun 30, 2024
@Damola18
Copy link

Damola18 commented Jul 7, 2024

Hey! This project is called remark-gfm, not remark-multimarkdown or remark-pandoc, so nope, not going to happen.

I recommend not doing this. Use regular GFM tables. Or, use HTML.

So are you at any point considering adding support for row spanning or column spacing in the future. If not, what alternatives do you have in place for tables with merged cells for remark-gfm ?. Tried a handful of things for my current use case but it doesnt seem to work.

@ChristianMurphy
Copy link
Member

Hey @Damola18! 👋

Taking a step back, consider not creating another markdown flavor.
The reasons and alternatives are explained best here: https://github.com/micromark/micromark?tab=readme-ov-file#extending-markdown

So are you at any point considering adding support for row spanning or column spacing in the future

Not to remark-gfm, no.

If not, what alternatives do you have in place for tables with merged cells for remark-gfm ?.

None in remark-gfm

Tried a handful of things for my current use case but it doesnt seem to work.

It is possible to create your own markdown extension for pandoc or any other flavor you want to support.
https://github.com/micromark/micromark?tab=readme-ov-file#creating-a-micromark-extension
the process is involved, but possible.

@remarkjs remarkjs locked as resolved and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🙅 no/wontfix This is not (enough of) an issue for this project 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

4 participants