1. Table Plugin
There is a new table plugin for v2 🥳
Use it in go:
conv := converter.NewConverter(
converter.WithPlugins(
base.NewBasePlugin(),
commonmark.NewCommonmarkPlugin(),
table.NewTablePlugin(), // <-- NEW
),
)Or --plugin-table for the CLI.
2. CLI File input and output
The CLI can now work directly with the filesystem:
$ html2markdown --input file.html --output file.md
$ html2markdown --input "src/*.html" --output "dist/"Changelog
- 2d9c0c76ad58c082ca9dd0bdbe7947cb3234804e Bump github.com/agnivade/levenshtein from 1.2.0 to 1.2.1
- 2e1f9fd84e4ed5e80f8a10780ad8311f7ea87baa Bump github.com/muesli/termenv from 0.15.2 to 0.16.0
- 7054d30700a91b19e00666f538011a48e3363c39 Bump golang.org/x/net from 0.33.0 to 0.35.0
- 3d2ff94682d76b0c73a4f35a396815ce77ea13e0 Merge pull request #134 from JohannesKaufmann/improve-hard-line-break-2
- 73f4145828cf2925f12c68ed5123a852ddf3128b Merge pull request #135 from kinensake/fix-code-block-in-list
- 3f762f54e3379fb4575b0b2683272078688d8ac0 Merge pull request #139 from JohannesKaufmann/dependabot/go_modules/github.com/agnivade/levenshtein-1.2.1
- 7e02068d7c54522059f1e75d34084f102009f7b0 Merge pull request #141 from eko/patch-1
- 9c0410af8bbb8f646c19ee5340296a681804df22 Merge pull request #142 from JohannesKaufmann/dependabot/go_modules/golang.org/x/net-0.35.0
- 8a661fac019b22dcd66aa8b27a06e7ae6db49113 Merge pull request #143 from JohannesKaufmann/dependabot/go_modules/github.com/muesli/termenv-0.16.0
- 43dad285912dc903140a26a7892dcb0dff76e226 Removed invalid URL Printf warning
- 87f20d33b09fd1bf29e558b25df16bc1c4c29f34 add code block in list test to golden files
- ceeec4b277159f76712b2abc2c417f5737ada540 add test cases for link with newlines
- 7fca0c16d383d8fb33945447c4992cd77fa216e7 cli-add-table-plugin (#146)
- 7506c18cb157ca647abf761909126cdbe9e01dc1 cli: added --input and --output flags (#137)
- d64b97aa5c88443135962d4d1036269c314f6a7a escape multiline func prefers hard line break
- 29db0709e6e3c0a50c3e457bea1b165c5e34fe19 escape multiline uses other trim newline func
- 7db53b2b7a3db0e930c9a28a8fb8eda94ae7c834 fix render code block in list
- 6b0ee5847c48b2e145d973db9570a8c1ecc3fcab improve handling of hard line breaks when removing newlines
- bd152189b91694fc7cf2fae385e48f96163e01ef plugin: added table plugin (#144)
- 6a359b11e77ceff6a5f8442e18ed327982414d69 remove unused constants in render list test
- f6aab8f7d1e9ff5755b0675ddbaeccfc3cf54ba6 restructure use of TrimConsecutiveNewlines func