Compare commits
2 commits
5f1933a345
...
c6f0808313
Author | SHA1 | Date | |
---|---|---|---|
c6f0808313 | |||
d23a632983 |
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ SDV($FootnoteBacklinkCharacter, '⇑');
|
|||
Markup("[^",'<split','/\[\^(.*?)\^\]/s',"Footnote");
|
||||
Markup("checkbox", "inline", "/\[ \]/", "<input type=checkbox class=checkbox disabled>");
|
||||
Markup("checkedbox", "inline", "/\[x\]/", "<input type=checkbox class=checkbox disabled checked>");
|
||||
Markup("citationneeded", "inline", "/\{\{(cn|[Cc]itation needed)(\|(reason|date)=.+?)?\}\}/", "<sup>[<em>citation needed</em>]</sup>");
|
||||
|
||||
function Footnote($m) {
|
||||
static $fngroup = 1, $fncount = 0, $fntext = array();
|
||||
|
@ -83,7 +84,7 @@ function Footnote($m) {
|
|||
}
|
||||
$fnid = $fngroup . '_' . $fncount;
|
||||
|
||||
$out = ($fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "<sup><a class='footnote' id='fnr$fnid' href='#fn$fnid'>[$fncount]</a></sup>";
|
||||
$out = (isset($fn_str_parts[2]) && $fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "<sup><a class='footnote' id='fnr$fnid' href='#fn$fnid'>[$fncount]</a></sup>";
|
||||
global $FootnoteBacklinkCharacter;
|
||||
if ($fn_str != '') {
|
||||
$fntext[$fncount] = "<div class='footnote' id='fn$fnid'>\n" .
|
||||
|
|
Loading…
Reference in a new issue