Skip to content

Markdown Tables Not Rendering Correctly

Markdown Tables are not rendered correctly.

STEPS:

Create a markdown table, such as the one below

|#|Methodology                                |Notes                  |
|-|-------------------------------------------|-----------------------|
|1| Using `cut`                               |                       |
|2| Using `grep -o`                           | +5 XP for regex       |
|3| Using `sed -r`                            | +5 XP for regex       |
|4| Bash var expansion                        | +10 XP for complexity |
|5| Bash `read` w/ multiple vars              |                       |
|6| `set --` and positional parameters        | +5 XP for complexity  |
|7| Bash `read -d:` and `tr`                  | +10 XP for complexity |
|8| Bash `read -d:` and `sed 'y/set/replace/'`| +15 XP for complexity |

ACTUAL RESULTS:

This is what is rendered online by GitLab:

table_rendering

EXPECTED RESULTS:

This is how it is rendered by another program:

expected_results