gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 271 forks source link

Fix deprecated interface for YAML.safe_load #781

Closed stanhu closed 1 year ago

stanhu commented 1 year ago

Passing in the permitted classes as the second argument was deprecated in Psych 3 (https://github.com/ruby/psych/pull/378) and removed in Psych 4 (https://github.com/ruby/psych/pull/487).

Ruby 3.1 ships with Psych 4, so to make the code work for Ruby 2.7 and up, use the permitted_classes keyword argument.

stanhu commented 1 year ago

Closing in favor of https://github.com/gettalong/kramdown/pull/779.