Skip to content

v2.3.0 - table plugin

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 27 Feb 12:26
· 1 commit to main since this release
7fca0c1

1. Table Plugin

There is a new table plugin for v2 🥳

Use it in go:

conv := converter.NewConverter(
	converter.WithPlugins(
		base.NewBasePlugin(),
		commonmark.NewCommonmarkPlugin(),
		table.NewTablePlugin(), // <-- NEW
	),
)

Or --plugin-table for the CLI.

2. CLI File input and output

The CLI can now work directly with the filesystem:

$ html2markdown --input file.html --output file.md

$ html2markdown --input "src/*.html" --output "dist/"

Changelog

  • 2d9c0c7 Bump github.com/agnivade/levenshtein from 1.2.0 to 1.2.1
  • 2e1f9fd Bump github.com/muesli/termenv from 0.15.2 to 0.16.0
  • 7054d30 Bump golang.org/x/net from 0.33.0 to 0.35.0
  • 3d2ff94 Merge pull request #134 from JohannesKaufmann/improve-hard-line-break-2
  • 73f4145 Merge pull request #135 from kinensake/fix-code-block-in-list
  • 3f762f5 Merge pull request #139 from JohannesKaufmann/dependabot/go_modules/github.com/agnivade/levenshtein-1.2.1
  • 7e02068 Merge pull request #141 from eko/patch-1
  • 9c0410a Merge pull request #142 from JohannesKaufmann/dependabot/go_modules/golang.org/x/net-0.35.0
  • 8a661fa Merge pull request #143 from JohannesKaufmann/dependabot/go_modules/github.com/muesli/termenv-0.16.0
  • 43dad28 Removed invalid URL Printf warning
  • 87f20d3 add code block in list test to golden files
  • ceeec4b add test cases for link with newlines
  • 7fca0c1 cli-add-table-plugin (#146)
  • 7506c18 cli: added --input and --output flags (#137)
  • d64b97a escape multiline func prefers hard line break
  • 29db070 escape multiline uses other trim newline func
  • 7db53b2 fix render code block in list
  • 6b0ee58 improve handling of hard line breaks when removing newlines
  • bd15218 plugin: added table plugin (#144)
  • 6a359b1 remove unused constants in render list test
  • f6aab8f restructure use of TrimConsecutiveNewlines func