ncornette/Python-Markdown-Editor

table not rendering as expected

jlinoff opened this issue · 2 comments

i really, really like this tool but ran into a problem when I tested table rendering with this simple md:

# test table

<details>

<summary>Table</summary>

| Key | Value |
| --- | ----- |
| a | a value |
| b | b value |
| c | c value |

</details>

This is what was rendered:

Screen Shot 2021-06-28 at 6 09 28 PM

what am i doing wrong?

Figured out the problem. The markdown package does not handle the syntax i used. Here is the corrected version

## test table

Key | Value
--- | -----
a | a value
b | b value
c | c value

This is the correct rendering.
Screen Shot 2021-07-02 at 9 24 45 AM

This is the command line i used:

markdown_edit x.md -w -x tables -o html5

The root cause was the use <detail> in my original experiment, this does NOT work but it needs to be fixed in the markdown package.

<details>

<summary>About</summary>

### Table Test (requested)

key  | value
--- | -----
a | a value
b | b value
c | c value

</details>