Class: Kramdown::Converter::Latex

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

Instance Method Summary collapse

Instance Method Details

#convert_page(el, opts) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/kramdown-pages/converter.rb', line 21

def convert_page(el, opts)
  if page = Page.find_by_path(el.value)
    "\\href{#{page.path}}{page.title}"
  else
    el.value
  end
end