Class: Kramdown::Converter::Kramdown

Inherits:
Object
  • Object
show all
Defined in:
lib/kramdown-gist/converter.rb

Instance Method Summary collapse

Instance Method Details

#convert_gist(el, opts) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Convert a gist element into the equivalent Kramdown "tag"

Returns:

  • (String)

    an Kramdown fragment representing this element



40
41
42
# File 'lib/kramdown-gist/converter.rb', line 40

def convert_gist(el, opts)
  "*{gist:#{el.value}}\n"
end