protected function handleTag_a_converter($tag, $buffer) { $output = parent::handleTag_a_converter($tag, $buffer); if (!empty($tag['cssSelector'])) { // [This link][id]{#id.class} $output .= '{' . $tag['cssSelector'] . '}'; } return $output; }