Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/johanneskaufmann/html-to-markdown to v2 #335

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 10, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/JohannesKaufmann/html-to-markdown v1.6.0 -> v2.2.2 age adoption passing confidence

Release Notes

JohannesKaufmann/html-to-markdown (github.com/JohannesKaufmann/html-to-markdown)

v2.2.2

Compare Source

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

Compare Source

Changelog

  • 43b9c81 github actions: publish deb packages

v2.2.0

Compare Source

Changelog

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

v2.1.0

Compare Source

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**
}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@j178 j178 closed this Feb 11, 2025
Copy link
Contributor Author

renovate bot commented Feb 11, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/git.luolix.top-johanneskaufmann-html-to-markdown-2.x branch February 11, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant