Releases: JohannesKaufmann/html-to-markdown
Releases · JohannesKaufmann/html-to-markdown
v2.2.2
Changelog
- a2a1219 Bump golang.org/x/net from 0.31.0 to 0.32.0
- 130f633 Merge pull request #121 from JohannesKaufmann/dependabot/go_modules/golang.org/x/net-0.32.0
- b3a74ca Merge pull request #124 from jcubic/remove-temp-file
- 5a52a80 Merge pull request #130 from JohannesKaufmann/improve-hard-line-break
- d904841 Merge pull request #131 from JohannesKaufmann/improve-nested-lists
- 14e6105 Merge pull request #132 from JohannesKaufmann/move-cli-command
- e128d43 add "go install" command to readme
- 5493558 add new testcases for
inside blockquote - fc29e14 add sponsor firecrawl to readme
- bbb7d5b change goreleaser config file to reflect cli folder move
- 057c7a9 commonmark: allow configuration of empty href/content behavior
- 891c5c1 commonmark: simplify naming of link behavior variables
- 0191495 domutils: added MoveListItems
- e5557f6 fix spelling mistakes
- 9344542 improved testcases for lists
- dda3eae move folder "cli" to "cli/html2markdown"
- ce09b2c new logic to remove consecutive newlines
- eca9d5c readme: add info about debian package & building from source
- 874d7d1 remove MacOSX temp file
- 54dfab5 remove old logic for unused marker
- bef143a remove unneeded code in marker package
- e40d875 render
directly as hard-line-break - bf93fdf update dependencies
- 947dc92 update go.sum
- df4e9cc use old EscapeMultiLine logic again
v2.2.1
v2.2.0
v2.1.0
V2 Release
The new version v2 has been released 🚀
It is a rewrite from the ground up — even more accurate than the v1 version!
Some new features:
- Nested lists: Improved handling of deeply nested lists
- Hard line breaks: Proper support for
<br />
tags - Smart escaping: Only escape characters if they would be mistaken for markdown syntax
- Powerful Plugins: The new architecture allows plugins to hook into every part of the converting process.
- Improved Golang API: Simpler, more ergonomic API. For most cases
htmltomarkdown.ConvertString(input)
works out of the box. - CLI: The cli is now part of the repository
- and more much...
Try it now
Since there are breaking changes, the path now has the "/v2" suffix. This also allows you to run v1 and v2 in parallel.
go get -u github.com/JohannesKaufmann/html-to-markdown/v2
package main
import (
"fmt"
"log"
htmltomarkdown "github.com/JohannesKaufmann/html-to-markdown/v2"
)
func main() {
input := `<strong>Bold Text</strong>`
markdown, err := htmltomarkdown.ConvertString(input)
if err != nil {
log.Fatal(err)
}
fmt.Println(markdown)
// Output: **Bold Text**
}
v2.0.3-alpha
Changelog
- a6926a0 add FAQ section to README
- f0108bb add base plugin
- 90318d6 add collapse testcase to cli
- 847f2d7 catch if base plugin is not registered
- c37ad42 connect collapse whitespace func to tag type map
- 270d8f4 converter: add WithEscapeMode
- 0c652f3 readme: add installation instructions
- 395858e remove element enum for absolute url function
- 7a77977 update dependencies
v2.0.2-alpha
Changelog
- a03c20a goreleaser: publish to own homebrew-tap repo
v2.0.1-alpha
Changelog
- b3cd870 add comments to ConvertX functions
- ac2bca7 change golang version to min 1.20
- 1e9b7b4 copy over MIT license
- 4e80d5d github actions: run on v2 branch
- 9e1b769 ignore example folder for test coverage
- e304501 inital commit of v2
- 67fcf58 remove old v1 files
- 8f50162 remove windows from testing matrix
- b00aaf9 update github actions workflow file to test different golang versions
v1.6.0 - improved YoutubeEmbed
- Add support for youtube-nocookie.com domain in YoutubeEmbed plugin
Thanks @devAbreu for submitting a PR 🙏
v1.5.0 - start for lists
- Configure the numbering of a ordered list by using the start attribute.
<ol start="10">
<li>10</li>
<li>11</li>
<li>12</li>
</ol>
- The
YoutubeEmbed()
andVimeoEmbed()
plugins can now be used more easily.
Please report any bugs that you encounter!
v1.4.2
What's Changed
- Bump github.com/yuin/goldmark from 1.5.5 to 1.6.0 by @dependabot in #81
- Bump golang.org/x/net from 0.14.0 to 0.18.0 by @dependabot in #82
Full Changelog: v1.4.1...v1.4.2