Open haines opened 5 months ago
For those who can’t wait for the maintainer to read my PR, you can use this in your Gemfile
:
gem 'yard', github: 'ParadoxV5/yard', tag: 'commonmarker-1.0_1'
or, to use the branch’s bleeding edge that the PR may revise:
gem 'yard', github: 'ParadoxV5/yard', branch: 'commonmarker-1.0'
Commonmarker 1.0 changes the top-level constant name from
CommonMarker
toCommonmarker
, so YARD fails to detect the provider.https://github.com/lsegal/yard/blob/2d197a381c5d4cc5c55b2c60fff992b31c986361/lib/yard/templates/helpers/markup_helper.rb#L33
https://github.com/gjtorikian/commonmarker/issues/269
The method used to render markdown is now
Commonmarker.to_html
rather thanCommonMarker.render_html
. It takes a hash of options instead of the previous arrays of symbols.https://github.com/lsegal/yard/blob/2d197a381c5d4cc5c55b2c60fff992b31c986361/lib/yard/templates/helpers/html_helper.rb#L93