-
Notifications
You must be signed in to change notification settings - Fork 526
Open
Description
In IRB, I tried to do the following:
s = "| Type | Content ID | Revision |\n|------------------------------|\n| ? | 10000003 | 0 |\n| ? | 10000004 | 0 |\n| ? | 10000005 | 0 |\n| ? | 10000002 | 1 |\n| ? | 10000118 | 2 |\n| ? | 10000055 | 6 |\n| ? | 10000001 | 26 |\n|------------------------------|\n"
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, tables: true)
puts markdown.render s
But the output is not the expected:
<p>| Type | Content ID | Revision |
|------------------------------|
| ? | 10000003 | 0 |
| ? | 10000004 | 0 |
| ? | 10000005 | 0 |
| ? | 10000002 | 1 |
| ? | 10000118 | 2 |
| ? | 10000055 | 6 |
| ? | 10000001 | 26 |
|------------------------------|</p>
I admint maybe this is an errorneous usage, but the documentation does not clear about the table rendering.
Metadata
Metadata
Assignees
Labels
No labels