Method: MaRuKu::Out::Latex#to_latex_link
- Defined in:
- lib/maruku/output/to_latex.rb
#to_latex_link ⇒ Object
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/maruku/output/to_latex.rb', line 396 def to_latex_link id = self.ref_id ref = @doc.refs[id] if not ref $stderr.puts "Could not find id = '#{id}'" return children_to_latex else url = ref[:url] #title = ref[:title] || 'no title' if url[0,1] == '#' url = url[1,url.size] return "\\hyperlink{#{url}}{#{children_to_latex}}" else return "\\href{#{url}}{#{children_to_latex}}" end end end |