aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioSun <[email protected]>2024-02-19 14:37:30 -0500
committerAntonioSun <[email protected]>2024-02-19 14:42:29 -0500
commitb194d45263a3ce8627eb93f1132ed2bc408687f6 (patch)
tree8af5f3ee436bb2d79fb79acd43108793108ad0ee
parent- [#] use upstream v1.5.0, and enable youtube plugins (diff)
downloadhtml2md-1.5.0.tar.xz
html2md-1.5.0.zip
- [#] update READMEv1.5.0
-rw-r--r--README.e.md7
-rw-r--r--README.md11
-rw-r--r--html2md_cliDef.go2
3 files changed, 15 insertions, 5 deletions
diff --git a/README.e.md b/README.e.md
index 1a830c9..d338390 100644
--- a/README.e.md
+++ b/README.e.md
@@ -12,7 +12,7 @@
## {{.Name}} - HTML to Markdown converter
-The `{{.Name}}` makes use of `github.com/JohannesKaufmann/html-to-markdown`
+The `{{.Name}}` makes use of https://github.com/JohannesKaufmann/html-to-markdown
to convert HTML into Markdown, which is using an [HTML Parser](https://github.com/PuerkitoBio/goquery) to avoid the use of `regexp` as much as possible, which can prevent some [weird cases](https://stackoverflow.com/a/1732454) and allows it to be used for cases where the input is totally unknown.
![html-to-markdown logo](https://github.com/JohannesKaufmann/html-to-markdown/raw/master/logo_five_years.png)
@@ -62,6 +62,11 @@ $ echo '<ul><li><input type=checkbox checked>Checked!</li><li><input type=checkb
$ echo 'Only <del>blue ones</del> <s> left</s>' | html2md -i --plugin-strikethrough
Only ~~blue ones~~ ~~left~~
+
+$ echo '<p>Lorem Ipsum:</p><p style="text-align: center;"><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/PifPVQOFyZI" title="YouTube video player" width="560"></iframe></p>' | ./html2md -i --plugin-youtube
+Lorem Ipsum:
+
+[![YouTube video player](https://img.youtube.com/vi/PifPVQOFyZI/0.jpg)](https://www.youtube.com/watch?v=PifPVQOFyZI)
```
#### Testing the new table plugins
diff --git a/README.md b/README.md
index d4199ed..b589092 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@
## html2md - HTML to Markdown converter
-The `html2md` makes use of `github.com/JohannesKaufmann/html-to-markdown`
+The `html2md` makes use of https://github.com/JohannesKaufmann/html-to-markdown
to convert HTML into Markdown, which is using an [HTML Parser](https://github.com/PuerkitoBio/goquery) to avoid the use of `regexp` as much as possible, which can prevent some [weird cases](https://stackoverflow.com/a/1732454) and allows it to be used for cases where the input is totally unknown.
![html-to-markdown logo](https://github.com/JohannesKaufmann/html-to-markdown/raw/master/logo_five_years.png)
@@ -46,8 +46,8 @@ to convert HTML into Markdown, which is using an [HTML Parser](https://github.co
### $ html2md
```sh
HTML to Markdown
-Version 1.1.1 built on 2023-06-15
-Copyright (C) 2020-2023, Tong Sun
+Version 1.5.0 built on 2024-02-10
+Copyright (C) 2020-2024, Tong Sun
HTML to Markdown converter on command line
@@ -128,6 +128,11 @@ $ echo '<ul><li><input type=checkbox checked>Checked!</li><li><input type=checkb
$ echo 'Only <del>blue ones</del> <s> left</s>' | html2md -i --plugin-strikethrough
Only ~~blue ones~~ ~~left~~
+
+$ echo '<p>Lorem Ipsum:</p><p style="text-align: center;"><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/PifPVQOFyZI" title="YouTube video player" width="560"></iframe></p>' | ./html2md -i --plugin-youtube
+Lorem Ipsum:
+
+[![YouTube video player](https://img.youtube.com/vi/PifPVQOFyZI/0.jpg)](https://www.youtube.com/watch?v=PifPVQOFyZI)
```
#### Testing the new table plugins
diff --git a/html2md_cliDef.go b/html2md_cliDef.go
index f61bfca..a2c9f31 100644
--- a/html2md_cliDef.go
+++ b/html2md_cliDef.go
@@ -55,7 +55,7 @@ type rootT struct {
var root = &cli.Command{
Name: "html2md",
Desc: "HTML to Markdown\nVersion " + version + " built on " + date +
- "\nCopyright (C) 2020-2023, Tong Sun",
+ "\nCopyright (C) 2020-2024, Tong Sun",
Text: "HTML to Markdown converter on command line" +
"\n\nUsage:\n html2md [Options...]",
Argv: func() interface{} { return new(rootT) },