diff options
| author | Tong Sun <[email protected]> | 2020-08-09 11:42:51 -0400 |
|---|---|---|
| committer | Tong Sun <[email protected]> | 2020-08-09 11:42:51 -0400 |
| commit | 19ead5b3f9722a404244a5f93050ccfc17bb08c2 (patch) | |
| tree | 68fc51c689e4f40577bd8fa9f7ec872f7048825b /README.e.md | |
| parent | - [*] refactor out handleOptions() & handlePlugins() to reduce cyclomatic com... (diff) | |
| download | html2md-19ead5b3f9722a404244a5f93050ccfc17bb08c2.tar.xz html2md-19ead5b3f9722a404244a5f93050ccfc17bb08c2.zip | |
- [+] add TableCompat plugin; enable Table
Diffstat (limited to 'README.e.md')
| -rw-r--r-- | README.e.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/README.e.md b/README.e.md index 247ab69..233cb81 100644 --- a/README.e.md +++ b/README.e.md @@ -59,6 +59,39 @@ $ echo 'Only <del>blue ones</del> <s> left</s>' | html2md -i --plugin-strikethro Only ~blue ones~ ~left~ ``` +## Testing the new table plugins + +```sh +$ cat $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/input.html | html2md -i -T | head -6 +| Firstname | Lastname | Age | +| --- | --- | --- | +| Jill | Smith | 50 | +| Eve | Jackson | 94 | +| Empty | | | +| End | + +$ cat $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/input.html | html2md -i -T --domain example.com | diff -wU 1 $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/output.table.golden - +--- +@@ -41 +41,2 @@ + | `var` | b | c | +\ No newline at end of file ++ + +$ cat $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/input.html | html2md -i --plugin-table-compat | head -6 +Firstname · Lastname · Age + +Jill · Smith · 50 + +Eve · Jackson · 94 + +$ cat $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/input.html | html2md -i --plugin-table-compat --domain example.com | diff -wU 1 $GOPATH/src/github.com/JohannesKaufmann/html-to-markdown/testdata/TestPlugins/table/output.tablecompat.golden - +--- +@@ -41 +41,2 @@ + `var` · b · c +\ No newline at end of file ++ +``` + # Debian package Will be available once `github.com/JohannesKaufmann/html-to-markdown` has a release version. |