jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
606 stars 63 forks source link

Markdown Table Formatter #16

Open ROBOTIS-David opened 4 years ago

ROBOTIS-David commented 4 years ago

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 !

jeffreytse commented 4 years ago

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

ROBOTIS-David commented 4 years ago

@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.

jeffreytse commented 4 years ago

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>