mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Don't treat markdown extra footnote contents specially if MKD_EXTRA_FOOTNOTE is not set.
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user