Skip to content

Commit

Permalink
table, tbody, tr, td
Browse files Browse the repository at this point in the history
  • Loading branch information
noahshinn committed Dec 25, 2023
1 parent f422c3d commit 42dded6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translators/html2md/html_to_md.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (t *HTML2MDTranslator) Visit(n *html.Node) string {
return fmt.Sprintf("## Nav Bar\n\n%s", strings.Join(items, "\n"))
case "sup":
return "^{" + strings.Join(content, "") + "}"
case "div", "section", "body", "header", "form", "dialog", "ul", "ol", "small", "bdi", "template", "summary", "details", "dl", "dt", "dd", "main":
case "div", "section", "body", "header", "form", "dialog", "ul", "ol", "small", "bdi", "template", "summary", "details", "dl", "dt", "dd", "main", "tbody", "table", "tr", "td":
return strings.Join(content, "\n")
case "p", "span", "g", "figure", "desc", "footer", "html", "legend", "fieldset", "center", "picture":
return strings.Join(content, " ")
Expand Down

0 comments on commit 42dded6

Please sign in to comment.