class Jekyll::Converters::Markdown::CommonMarkGhPages

A Markdown renderer which uses JekyllCommonMarkCustomRenderer to output the final document.

Public Instance Methods

convert(content) click to toggle source
# File lib/jekyll-commonmark-ghpages.rb, line 83
def convert(content)
  doc = CommonMarker.render_doc(content, @parse_options, @extensions)
  html = JekyllCommonMarkCustomRenderer.new(
    :options => @render_options,
    :extensions => @extensions
  ).render(doc)
  html.gsub(/<br data-jekyll-commonmark-ghpages>/, "\n")
end