Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

creating tables in Markdown on Github - how to do this right

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
say_hello
Posts: 36
Joined: 2019-10-13 09:58

creating tables in Markdown on Github - how to do this right

#1 Post by say_hello »

hello dear experts

i want to add formated text and tables to my newly created github-page.
at the moment i stuck - since i am not sure how to publsh a table - / in markdown

see this ressource: Markdown Cheatsheet · adam-p/markdown-here Wiki · GitHub
https://github.com/adam-p/markdown-here ... Cheatsheet

where it says that we can do this
colons can be used to align columns.

Code: Select all

Tables	Are	Cool
col 3 is	right-aligned	$1600
col 2 is	centered	$12
zebra stripes	are neat	$1
There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the
raw Markdown line up prettily. You can also use inline Markdown.

Code: Select all

Markdown	Less	Pretty
Still	renders	nicely
1	2	3
well - the question is . is it correct to put the table into the backticks - ``` .
i guess that this is not correct . since i do not get a table on the result page.

what can i do now!?


trinidad
Posts: 289
Joined: 2016-08-04 14:58
Been thanked: 13 times

Re: creating tables in Markdown on Github - how to do this r

#3 Post by trinidad »

It really depends on what you are trying to do. If say, you are creating a permanent table for display where the data changes rarely or never then just just create a table with some office software and screenshot it and display it as a .png image. If you are using API* raw data either JSON or .csv data that changes there are many options to create a table that responds to data changes. With .csv you can pre-format the data with cut to select certain columns and awk if you need to turn the table around (vertical to horizontal or vice versa) then pipe (|) the formatted data from the URL to the column function and display it with an iframe.

TC
You can't believe your eyes if your imagination is out of focus.

User avatar
say_hello
Posts: 36
Joined: 2019-10-13 09:58

Re: creating tables in Markdown on Github - how to do this right

#4 Post by say_hello »

many thanks dear Trinidad and arochester
many many thanks for all you did !

Post Reply