class Kramdown::Converter::Latex
def latex_link_target(el, add_label = false)
+nil+ otherwise. If the parameter +add_label+ is +true+, a \label command will also be used
Return a string containing a valid \hypertarget command if the element has an ID defined, or
def latex_link_target(el, add_label = false) if (id = el.attr['id']) "\\hypertarget{#{id}}{}#{add_label ? "\\label{#{id}}" : ''}" else nil end end