Skip to content

Commit 96c19eb

Browse files
committed
Handle markdown tables in markdown base
1 parent 04b445a commit 96c19eb

File tree

1 file changed

+6
-0
lines changed
  • app/views/components/markdown

1 file changed

+6
-0
lines changed

app/views/components/markdown/base.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def visit(node)
7676
hr
7777
in :block_quote
7878
blockquote { visit_children(node) }
79+
in :table
80+
table { visit_children(node) }
81+
in :table_row
82+
tr { visit_children(node) }
83+
in :table_cell
84+
td { visit_children(node) }
7985
in :html_block
8086
html_block(node.to_html(options: @options))
8187
in :html_inline # This is a raw HTML inline element, so we skip here in safe mode

0 commit comments

Comments
 (0)