jekyll-spaceship icon indicating copy to clipboard operation
jekyll-spaceship copied to clipboard

Markdown Table Formatter

Open ROBOTIS-David opened this issue 4 years ago • 3 comments

Hi, Thank you for distributing the amazing gem !

I want to ask you one question.

When I save or use Markdown Table Formatter, it always format like the classic a markdown table.

Here is the sample:

Before Table Formatter:

image

After Table Formatter (Alt+Shift+T)

image

As you can see, the formatter formats my table too correctly.

But I want it to be like this

image

Is it possible to format like the one above?

Thank you !

ROBOTIS-David avatar Jul 14 '20 10:07 ROBOTIS-David

Hi, @ROBOTIS-David

Thank you for your support and using this gem, could you provide more details (e.g Editor, formatter plugin name and link)?

Thanks with regards

jeffreytse avatar Jul 14 '20 10:07 jeffreytse

@jeffreytse

Hi, Thank you for your quick response :)

I am using Atom editor, and the basic Markdown Table Formatter.

And the link is here

But, I am doing test locally with my bundle server, so that the contents will not be present when you access now.

ROBOTIS-David avatar Jul 14 '20 11:07 ROBOTIS-David

Hi, @ROBOTIS-David

Currently, the markdown does not support complex table representation, so in order to be able to use these advanced table features and not be damaged by the formater, you should use hybrid HTML with markdown feature that the jekyll-spaceship provided.

For examples:


# Here is a hybrid html with markdown 

<script type="text/markdown">
| Stage | Direct Products | ATP Yields |
| ----: | --------------: | ---------: |
|Glycolysis | 2 ATP                   ||
|^^         | 2 NADH      | 3--5 ATP   |
|Pyruvaye oxidation | 2 NADH | 5 ATP   |
|Citric acid cycle  | 2 ATP           ||
|^^                 | 6 NADH | 15 ATP  |
|^^                 | 2 FADH | 3 ATP   |
| 30--32 ATP                         |||
</script>

jeffreytse avatar Jul 14 '20 11:07 jeffreytse