diff --git a/footnote2.php b/footnote2.php
new file mode 100644
index 0000000..980b097
--- /dev/null
+++ b/footnote2.php
@@ -0,0 +1,95 @@
+ 0) {
+ ksort($fntext);
+ $out = ($fn_str == "#") ?
+ "<:block>
\n" . implode('',$fntext) :
+ implode('',$fntext);
+ }
+
+ $fntext = array();
+ $fncount = 0;
+ $fngroup++;
+ } else {
+ $fncount++;
+ if (preg_match("/#([0-9]+)(?>\\s+(.+))?/s", $fn_str, $fn_str_parts)) {
+ $fncount = $fn_str_parts[1];
+ $fn_str = $fn_str_parts[2];
+ }
+ $fnid = $fngroup . '_' . $fncount;
+
+ $out = ($fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "";
+ global $FootnoteBacklinkCharacter;
+ if ($fn_str != '') {
+ $fntext[$fncount] = "";
+ } else if ($fntext[$fncount] == '') {
+ $fntext[$fncount] = '#';
+ }
+ }
+ return $out;
+}