Class: Kramdown::Converter::Latex

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 a LaTeX paragraph stating the Gist ID and including the target hyperlink as metadata suitable for some output formats (PDF).

Returns:

  • (String)

    a LaTeX fragment representing this element



54
55
56
57
# File 'lib/kramdown-gist/converter.rb', line 54

def convert_gist(el, opts)
  gist_id = el.value
  "See \\href{https://gist.github.com/#{gist_id}}{Gist #{gist_id}}.\n\n"
end