Class: Kramdown::Converter::Latex
- Inherits:
-
Object
- Object
- Kramdown::Converter::Latex
- Defined in:
- lib/kramdown-gist/converter.rb
Instance Method Summary collapse
-
#convert_gist(el, opts) ⇒ String
private
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).
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).
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 |