You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `{{.Name}}` makes use of `github.com/JohannesKaufmann/html-to-markdown`
13
7
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.
14
8
15
9

16
10
17
11
18
-
# Usage
12
+
##Usage
19
13
20
14
### $ {{exec "html2md" | color "sh"}}
21
15
22
-
# Examples
16
+
###Examples
23
17
24
-
## Simplest form
18
+
####Simplest form
25
19
26
20
```md
27
21
$ html2md -i https://github.com/suntong/html2md | head -3
The most useful feature is to use and pass a [goquery](https://github.com/PuerkitoBio/goquery) selection to filter for the content you want.
as the result of the Continuous-Integration process.
103
-
- I.e., they are built during every git tagged push, automatically by [GitHub Actions](https://github.com/features/actions), right from the source code, truely WYSIWYG.
104
-
- The `.deb`, `.rpm` and `.apk` packages are readily available, as well as the executables for other Linux and Windows as well.
105
-
- Pick & choose the binary executable that suits your OS and its architecture. E.g., for Linux, it would most probably be the `{{.Name}}_ver_linux_amd64.tar.gz` file.
106
-
- Unzip it and put the executable somewhere in the PATH, after downloading it.
107
-
108
-
109
-
## Install Source
110
-
111
-
To install the source code instead:
112
-
113
-
```
114
-
go get github.com/suntong/{{.Name}}
115
-
```
116
-
117
-
# Credits & Authors
89
+
## Credits
118
90
119
91
120
-
## Credits
92
+
###Credits
121
93
122
-
-[Johannes Kaufmann's html-to-markdown](github.com/JohannesKaufmann/html-to-markdown) that does the heavy lifting behind the scene.
94
+
-[Johannes Kaufmann's html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) that does the heavy lifting behind the scene.
123
95
124
-
## Similar Projects
96
+
###Similar Projects
125
97
126
98
-[turndown (js)](https://github.com/domchristie/turndown), a very good library written in javascript.
127
99
-[lunny/html2md](https://github.com/lunny/html2md), which is using [regex instead of goquery](https://stackoverflow.com/a/1732454), which exhibits a few edge cases which prompted `github.com/JohannesKaufmann/html-to-markdown`
128
100
-[jaytaylor/html2text](https://github.com/jaytaylor/html2text), which is not converting to markdown but plain text.
129
-
130
-
## Author(s) & Contributor(s)
131
-
132
-
Tong SUN
133
-

_Powered by_[**WireFrame**](https://github.com/go-easygen/wireframe), the _one-stop wire-framing solution_ for Go cli based projects, from start to deploy.
0 commit comments