/** * Convert the given token to the output format. * @param MUNGER $munger The transformation context. * @param MUNGER_TOKEN $token The token that triggered the transformation. * @return string */ public function transform($munger, $token) { if ($token->is_start_tag()) { $munger->inc_footnote_texts(); } $info = $munger->current_text_footnote_info(); return $this->_format_text($munger, $token, $info); }