Don't treat markdown extra footnote contents specially if MKD_EXTRA_FOOTNOTE is not set.

This commit is contained in:
david parsons
2011-01-13 12:05:24 -08:00
parent 5a019adc0c
commit 335d4cdb80
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1655,7 +1655,7 @@ mkd_extra_footnotes(MMIOT *m)
if ( m->reference == 0 )
return;
Csprintf(&m->out, "<div class=\"footnotes\">\n<hr/>\n<ol>\n");
Csprintf(&m->out, "\n<div class=\"footnotes\">\n<hr/>\n<ol>\n");
for ( i=1; i <= m->reference; i++ ) {
for ( j=0; j < S(*m->footnotes); j++ ) {
+1 -1
View File
@@ -962,7 +962,7 @@ addfootnote(Line *p, MMIOT* f)
S(foot->tag)--;
j = nextnonblank(p, j+2);
if ( T(foot->tag)[0] == '^' ) {
if ( (f->flags & MKD_EXTRA_FOOTNOTE) && (T(foot->tag)[0] == '^') ) {
while ( j < S(p->text) )
EXPAND(foot->title) = T(p->text)[j++];
goto skip_to_end;