Skip to content

Commonmarker 1.0 support #1528

@haines

Description

@haines

Commonmarker 1.0 changes the top-level constant name from CommonMarker to Commonmarker, so YARD fails to detect the provider.

{:lib => :commonmarker, :const => 'CommonMarker'}

gjtorikian/commonmarker#269

The method used to render markdown is now Commonmarker.to_html rather than CommonMarker.render_html. It takes a hash of options instead of the previous arrays of symbols.

CommonMarker.render_html(text, %i[DEFAULT GITHUB_PRE_LANG], %i[autolink table])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions