Skip to content

Commit

Permalink
- [#] enable Vimeo & Youtube plugins; NOK
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Feb 10, 2024
1 parent ec1b5c2 commit 423fe1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions html2md_main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////
// Program: html2md
// Purpose: HTML to Markdown
// Authors: Tong Sun (c) 2020-2023, All rights reserved
// Authors: Tong Sun (c) 2020-2024, All rights reserved
////////////////////////////////////////////////////////////////////////////

package main
Expand All @@ -23,8 +23,8 @@ import (

var (
progname = "html2md"
version = "1.1.1"
date = "2023-06-15"
version = "1.5.0"
date = "2024-02-10"

rootArgv *rootT
)
Expand Down
14 changes: 7 additions & 7 deletions prop_html2md.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////
// Program: html2md
// Purpose: HTML to Markdown
// Authors: Tong Sun (c) 2020, All rights reserved
// Authors: Tong Sun (c) 2020-2024, All rights reserved
////////////////////////////////////////////////////////////////////////////

package main
Expand Down Expand Up @@ -125,11 +125,11 @@ func handlePlugins(conv *md.Converter, rootArgv *rootT) *md.Converter {
if rootArgv.PluginTaskListItems {
conv.Use(plugin.TaskListItems())
}
// if rootArgv.PluginVimeoEmbed {
// conv.Use(plugin.VimeoEmbed())
// }
// if rootArgv.PluginYoutubeEmbed {
// conv.Use(plugin.YoutubeEmbed())
// }
if rootArgv.PluginVimeoEmbed {
conv.Use(plugin.VimeoEmbed())

Check failure on line 129 in prop_html2md.go

View workflow job for this annotation

GitHub Actions / build

not enough arguments in call to plugin.VimeoEmbed
}
if rootArgv.PluginYoutubeEmbed {
conv.Use(plugin.YoutubeEmbed())
}
return conv
}

0 comments on commit 423fe1c

Please sign in to comment.