Skip to content

Releases: JohannesKaufmann/html-to-markdown

v2.2.1

21 Nov 20:15
Compare
Choose a tag to compare

Changelog

  • 43b9c81 github actions: publish deb packages

v2.2.0

17 Nov 17:53
Compare
Choose a tag to compare

Changelog

  • 5af1444 cli: add include & exclude selectors
  • 4d6b2ff converter: allow base domain with url scheme
  • c9b6dbc github: add issue forms

v2.1.0

06 Nov 21:21
Compare
Choose a tag to compare

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

04 Nov 20:56
Compare
Choose a tag to compare

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

31 Aug 13:00
Compare
Choose a tag to compare

Changelog

  • a03c20a goreleaser: publish to own homebrew-tap repo

v2.0.1-alpha

31 Aug 12:49
Compare
Choose a tag to compare
v2.0.1-alpha Pre-release
Pre-release

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

24 May 19:12
Compare
Choose a tag to compare
  • Add support for youtube-nocookie.com domain in YoutubeEmbed plugin

Thanks @devAbreu for submitting a PR 🙏

v1.5.0 - start for lists

27 Dec 14:39
2ec2259
Compare
Choose a tag to compare
  1. 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>
  1. The YoutubeEmbed() and VimeoEmbed() plugins can now be used more easily.
    Please report any bugs that you encounter!

v1.4.2

19 Nov 16:46
a5828fd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.1...v1.4.2

v1.4.1

20 Aug 09:34
bcbfd0d
Compare
Choose a tag to compare
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>