Skip to content

Release v5.2.2

Choose a tag to compare

@JC-DSIT JC-DSIT released this 15 Apr 08:10
· 186 commits to main since this release
136e0b9

What's Changed

  • add a whitespace so the renderer doesn't add the sentence to the table by @jamescarr28 in #440
  • Fix typo in README by @tombye in #441
  • Bump jasmine-browser-runner from 2.5.0 to 3.0.0 by @dependabot[bot] in #450
  • Bump jasmine-core from 5.5.0 to 5.13.0 by @dependabot[bot] in #448
  • Ban pre|post-install NPM scripts by @tombye in #453

Potential breaking change

If you have custom ruby classes to override the markdown, you may get an error similar to:

undefined method `link_to' for nil:NilClass (NoMethodError) - scope.link_to(content, link, attributes)

From the middleman community:

In Middleman’s redcarpet renderer, it sets renderer.scope = options[:context] and then renders links via scope.link_to(...). If

options[:context] wasn’t provided by the caller, scope is nil, and your exact error happens. So the “breaking change” you’re seeing between 4.5.1 and 4.6.x is very often: a previously-tolerated/no-link path now hits the link callback and needs context passed correctly.

You can fix this by passing the context correctly. For example:

- markdown_class.new { formatted_text }.render(@app).html_safe 
+ markdown_class.new(context: self) { formatted_text }.render.html_safe

You should check this before updating your Gemfile.lock

New Contributors

Full Changelog: v5.2.1...v5.2.2