Releases: JohannesKaufmann/html-to-markdown
Releases · JohannesKaufmann/html-to-markdown
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
v1.4.1
Bump golang.org/x/net from 0.9.0 to 0.14.0 (#74) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.14.0. - [Commits](https://github.com/golang/net/compare/v0.9.0...v0.14.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>