No html tags 'table' in the result of README example execution. #334
-
Hi All!
Then executed code from markdown-it-py README file with added last line (print function call). from markdown_it import MarkdownIt
from mdit_py_plugins.front_matter import front_matter_plugin
from mdit_py_plugins.footnote import footnote_plugin
md = (
MarkdownIt('commonmark', {'breaks': True, 'html': True})
.use(front_matter_plugin)
.use(footnote_plugin)
.enable('table')
)
text = ("""
---
a: 1
---
a | b
- | -
1 | 2
A footnote [^1]
[^1]: some details
""")
html_text = md.render(text)
print("\n")
print(html_text) And I don't see any table related html tag into output. Tried with Python 3.8 and 3.12. Something went wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
chrisjsewell
Jun 11, 2024
Replies: 2 comments
-
Heya, yeh that's not a valid table; you need to have more - or start with a | You can see if you just try in here: a | b
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vb64
-
Thanks, it worked. I used the code from the README example. It probably needs to be fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Heya, yeh that's not a valid table; you need to have more - or start with a |
You can see if you just try in here:
a | b
1 | 2