Skip to content

Releases: JohannesKaufmann/html-to-markdown

v2.2.2

27 Dec 15:47
Compare
Choose a tag to compare

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

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