Skip to content

Releases: JohannesKaufmann/html-to-markdown

v1.2.0

10 Aug 13:18
f2fa6ac
Compare
Choose a tag to compare
  • The Table Plugin was improved and the TableCompat Plugin was added

  • Added After and Before hooks to the converter. To see how it is used, have a look at the Table Plugin.

func Table() md.Plugin {
	return func(c *md.Converter) []md.Rule {
		// the plugin (when added via Use) gets called with the converter and can use the methods on it.
		c.Before(func(selec *goquery.Selection) {
			// manipulate the dom to move all caption elements outside the table
		})

		// it returns the rules
		return []md.Rule{ ... }
	}
}

v1.1.0

06 Aug 17:09
Compare
Choose a tag to compare

You can now override the GetAbsoluteURL function in the Options. For example, you can configure a proxy for the images.

v1.0.0

30 Jul 09:41
Compare
Choose a tag to compare

The library works pretty well but you might still encounter some edge cases. Please report any generated invalid markdown...