Skip to content

No need to monkey patch #2

Open
@biomancer

Description

@biomancer

Hi! I've noticed that you use monkey patching, but actually Kramdown supports custom converters, so you can do just extend it from Html:

module Kramdown
  module Converter
    class Amp < Html
       # override what you need here
    end
  end
end

And then just use like that:
Kramdown::Document.new(YOUR_TEXT).to_amp

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