Skip to content

Support Rouge Formatters with other method signatures #759

@jonsgreen

Description

@jonsgreen

While working on a plugin for Bridgetown I realized that it was not possible to use some of the newer Rouge Formatters like Rouge::Formatters::HTMLLineHighlighter.new(formatter, highlight_lines: [3, 5]) for at least two reasons. First of all the first argument is a delegate for another formatter. Secondly, there is no way to pass the highlight_lines option through to the Formatter without doing some monkey patching.

Is there any interest in supporting these other Formatters from within Kramdown (rather than resorting to external patches)? Are you open to PRs on this and is there the bandwidth from someone with a deeper knowledge of the codebase to advise?

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