Fossil SCM
Fix parsing of "free-standing" footnotes that was (slightly) broken by the previous check-in.
Commit
23c3e0b2a7fd896316a579778c8938a71d98e85dbb02bf3dabe18cff51fd956c
Parent
b363a4dbe7d62fe…
1 file changed
+1
+1
| --- src/markdown.c | ||
| +++ src/markdown.c | ||
| @@ -1218,10 +1218,11 @@ | ||
| 1218 | 1218 | rndr->notes.misref.nUsed++; |
| 1219 | 1219 | fn = &rndr->notes.misref; |
| 1220 | 1220 | } |
| 1221 | 1221 | release_work_buffer(rndr, content); |
| 1222 | 1222 | content = 0; |
| 1223 | + i = txt_e+1; /* rewinding a closing square bracket */ | |
| 1223 | 1224 | |
| 1224 | 1225 | }else if( i<size && data[i]=='(' ){ |
| 1225 | 1226 | |
| 1226 | 1227 | if( i+2<size && data[i+1]=='^' ){ /* span-bounded inline footnote */ |
| 1227 | 1228 | |
| 1228 | 1229 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -1218,10 +1218,11 @@ | |
| 1218 | rndr->notes.misref.nUsed++; |
| 1219 | fn = &rndr->notes.misref; |
| 1220 | } |
| 1221 | release_work_buffer(rndr, content); |
| 1222 | content = 0; |
| 1223 | |
| 1224 | }else if( i<size && data[i]=='(' ){ |
| 1225 | |
| 1226 | if( i+2<size && data[i+1]=='^' ){ /* span-bounded inline footnote */ |
| 1227 | |
| 1228 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -1218,10 +1218,11 @@ | |
| 1218 | rndr->notes.misref.nUsed++; |
| 1219 | fn = &rndr->notes.misref; |
| 1220 | } |
| 1221 | release_work_buffer(rndr, content); |
| 1222 | content = 0; |
| 1223 | i = txt_e+1; /* rewinding a closing square bracket */ |
| 1224 | |
| 1225 | }else if( i<size && data[i]=='(' ){ |
| 1226 | |
| 1227 | if( i+2<size && data[i+1]=='^' ){ /* span-bounded inline footnote */ |
| 1228 | |
| 1229 |