feat: Table support in article editor (#13974)

This commit is contained in:
Sivin Varghese
2026-04-16 11:23:10 +05:30
committed by GitHub
parent cc008951db
commit edd0fc98db
7 changed files with 60 additions and 16 deletions

View File

@@ -9,6 +9,12 @@ class CustomMarkdownRenderer < CommonMarker::HtmlRenderer
@embed_regexes ||= config.transform_values { |embed_config| Regexp.new(embed_config['regex']) }
end
def table(node)
out('<div class="tableWrapper">')
super
out('</div>')
end
def text(node)
content = node.string_content