Releases: russross/blackfriday
v2.1.0
A minor release, mainly aimed at resolving ambiguity about the import path for blackfriday v2 and delivering minor fixes since last release:
- Committed to
github.com/russross/blackfriday/v2
as the canonical import path for blackfriday v2. (Issue #587) - Reduced the amount of dependencies. (PRs #509 and #515)
- Added a
SanitizedAnchorName
function. (PR #509) - Added
Node.IsContainer
andNode.IsLeaf
methods. (PR #540) - Fixed parsing of links that end with a double backslashes. (Issue #510)
- Fixed an issue where fence length wasn't computed. (PR #505)
- Improved the default value for the
HTMLRendererParameters.FootnoteReturnLinkContents
field. (PR #547)
v1.6.0
A minor release, delivering minor fixes since the last release, and resolving ambiguity in the README about the import path for blackfriday v2:
- Committed to
github.com/russross/blackfriday/v2
as the canonical import path for blackfriday v2. (Issue #587) - Added
HTML_NOOPENER_LINKS
HTML renderer option. (Issue #459, PR #570) - Fixed parsing of fenced code blocks inside lists. (Issues #495 and #485, PR #521)
- Fixed an issue where <details> tag was wrapped in <p> tag. (Issue #525, PR #559)
- Fixed parsing of links that end with a double backslashes. (PR #512)
v2.0.1
A minor release, mainly aimed at releasing a version with go.mod.
- Added go.mod
- Enhanced support for info strings in fenced code blocks (issue #410)
- README updates
- Added a reference to confluence wiki renderer
- Fixed HTML entity regex
- Fixed HTML5 by removing
rel="footnote"
which is invalid - Added NoopenerLinks option that adds
rel="noopener"
attribute - Added heading offset option to HTML renderer
- Fixed consecutive lists of different kinds
- Fixed block parsing for fenced code blocks in lists (issue #239)
Huge thanks to the contributors!
Bjørn Erik Pedersen (@bep)
Cameron Moore (@moorereason)
Dmitri Shuralyov (@dmitshur)
Emil Melnikov (@emilmelnikov)
Iain Haslam (@understated)
Kentaro Matsushita (@kentaro-m)
Liming Jin (@jinliming2)
Michael (@michael-k)
Mitchell Cohen (@mitchchn)
Nathan Glenn (@garfieldnate)
Nick Galbreath (@client9)
Rebecca Turner (@9999years)
Vas Sudanagunta (@vassudanagunta)
v1.5.2
A minor release, mainly aimed at releasing a version with go.mod.
- Added go.mod
- Fixed block parsing for fenced code blocks in lists (issue #239)
- Added a link to bfchroma
- Enhanced support for info strings in fenced code blocks (issue #410)
Huge thanks to the contributors!
Bjørn Erik Pedersen (@bep)
Nathan Glenn (@garfieldnate)
Tim Fogarty (@tfogo)
Yoshiya Hinosawa (@kt3k)
v1.5.1
Mostly updates to the README. Contains a fix to HTML5 by removing rel="footnote", which is no longer valid.
Huge thanks to the contributors!
Iain Haslam (@IainHaslam)
Vas Sudanagunta (@vassudanagunta)
v2.0.0
Version 2 of Blackfriday is a major overhaul of the API. Feature-wise nothing has changed, but the entire set of types, functions and constants has changed. This was done to make the API have more idiomatic Go look-and-feel, and fix a few bugs inherent in the legacy C-like interface. As a bonus, Blackfriday has become more flexible for extension.
Highlights:
- The most common entry point has been simplified. The vast majority of users can now call
Run
to get what they want:outputBytes := blackfriday.Run(inputBytes)
- Writing your own renderer has become much easier.
- It's become very easy to write an extension to an existing renderer, customizing one aspect or another, and leaning back to the default behavior.
- You can now parse the Markdown document and obtain the syntax tree. You can manipulate the tree before rendering, or you can use it for data extraction from the Markdown documents.
- To get all of the above working, documentation has been improved.
v1.5
- Added
HTML_SMARTYPANTS_QUOTES_NBSP
, which allows having nonbreakable spaces
inside « French guillemets » (Issue #378) - Added
EXTENSION_JOIN_LINES
, which joins newline-separated lines into a
single paragraph. Useful for Chinese text. - Implemented support for CDATA section (Issue #165)
- Fixed links with parentheses (Issue #116)
- Fixed fenced code blocks inside lists (Issue #228)
- Fixed regression, panic in reference links (Issues #172 and #173)
- Fixed adjacent list merging (Issue #235)
- Fixed definition lists that contain other lists (Issue #263)
- Fixed fenced code pre-processing (Issue #279)
- Fixed panic with recursive footnotes (Issue #241)
Huge thanks to everyone who contributed to this release!
Alex Yatskov (@FooSoft)
Bjørn Erik Pedersen (@bep)
Cameron Moore (@moorereason)
Dmitri Shuralyov (@shurcooL)
Haishan Zhou (@choueric)
Kévin Dunglas (@dunglas)
Nat Welch (@icco)
Shawn Smith (@shawnps)
Tom Kwok (@tomkwok)