aboutsummaryrefslogtreecommitdiff
path: root/prop_html2md.go
diff options
context:
space:
mode:
authorTong Sun <[email protected]>2020-08-09 11:42:51 -0400
committerTong Sun <[email protected]>2020-08-09 11:42:51 -0400
commit19ead5b3f9722a404244a5f93050ccfc17bb08c2 (patch)
tree68fc51c689e4f40577bd8fa9f7ec872f7048825b /prop_html2md.go
parent- [*] refactor out handleOptions() & handlePlugins() to reduce cyclomatic com... (diff)
downloadhtml2md-19ead5b3f9722a404244a5f93050ccfc17bb08c2.tar.xz
html2md-19ead5b3f9722a404244a5f93050ccfc17bb08c2.zip
- [+] add TableCompat plugin; enable Table
Diffstat (limited to 'prop_html2md.go')
-rw-r--r--prop_html2md.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/prop_html2md.go b/prop_html2md.go
index a65cc6b..2435f23 100644
--- a/prop_html2md.go
+++ b/prop_html2md.go
@@ -99,9 +99,12 @@ func handlePlugins(conv *md.Converter, rootArgv *rootT) *md.Converter {
if rootArgv.PluginStrikethrough {
conv.Use(plugin.Strikethrough(""))
}
- // if rootArgv.PluginTable {
- // conv.Use(plugin.Table())
- // }
+ if rootArgv.PluginTable {
+ conv.Use(plugin.Table())
+ }
+ if rootArgv.PluginTableCompat {
+ conv.Use(plugin.TableCompat())
+ }
if rootArgv.PluginTaskListItems {
conv.Use(plugin.TaskListItems())
}