Hi,
Here is an anchor patch for caution, important, note, tip and warning tags.
Best regards,
Nilgün
Index: xhtml.php
===================================================================
RCS file: /repository/phd/formats/xhtml.php,v
retrieving revision 1.67.2.2.2.2
diff -u -r1.67.2.2.2.2 xhtml.php
--- xhtml.php 7 Nov 2008 22:52:01 -0000 1.67.2.2.2.2
+++ xhtml.php 8 Nov 2008 15:08:26 -0000
@@ -1126,7 +1126,11 @@
}
public function format_admonition($open, $name, $attrs, $props) {
if ($open) {
- return '<div class="'. $name. '">' .$this->admonition_title($name, $props["lang"]);
+ $idstr = '';
+ if(isset($attrs[PhDReader::XMLNS_XML]["id"])) {
+ $idstr = '<a name="'. $attrs[PhDReader::XMLNS_XML]["id"]. '" id="' . $attrs[PhDReader::XMLNS_XML]["id"]. '"'. " />\n ";
+ }
+ return $idstr. '<div class="'. $name. '">'. $this->admonition_title($name, $props["lang"]);
}
return "</div>";
}