Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix parsing of a multiline definition of labeled footnote for the case when lines end with CR+LF. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | markdown-footnotes |
Files: | files | file ages | folders |
SHA3-256: |
ea66d15cf39d36109f6d20dc36bbbff9 |
User & Date: | george 2022-02-11 01:26:29 |
Context
2022-02-12
| ||
20:52 | If markup is ambigous between a "span-bounded" footnote and a "free-standing" footnote followed by another footnote then interpret as the later case. ... (check-in: b363a4db user: george tags: markdown-footnotes) | |
2022-02-11
| ||
01:26 | Fix parsing of a multiline definition of labeled footnote for the case when lines end with CR+LF. ... (check-in: ea66d15c user: george tags: markdown-footnotes) | |
2022-02-10
| ||
23:00 | Clean-up and polish relevant CSS and HTML's class names. Insure visual spacing between footnotes' markers so that numbers are distinguishable when multiple footnotes in a row are used. Factor out auxiliary decorations from HTML into the default CSS, to enable customization via skins. ... (check-in: 2b1375ab user: george tags: markdown-footnotes) | |
Changes
Changes to src/markdown.c.
︙ | ︙ | |||
2431 2432 2433 2434 2435 2436 2437 | if( data[i]!='\n' && data[i]!='\r' ){ const size_t j = i; do i++; while( i<end && data[i]!='\n' && data[i]!='\r' ); blob_append(&fn.text, data+j, i-j); if( i<end ){ blob_append_char(&fn.text, data[i]); i++; | | | | 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 | if( data[i]!='\n' && data[i]!='\r' ){ const size_t j = i; do i++; while( i<end && data[i]!='\n' && data[i]!='\r' ); blob_append(&fn.text, data+j, i-j); if( i<end ){ blob_append_char(&fn.text, data[i]); i++; if( i<end && data[i]=='\n' && data[i-1]=='\r' ){ blob_append_char(&fn.text, data[i]); i++; } } }else{ i++; if( i<end && data[i]=='\n' && data[i-1]=='\r' ) i++; } if( i<end ){ /* compute the indentation from the 2nd line */ size_t indent = i; const char *spaces = data+i; while( i<end && data[i]==' ' ){ i++; } |
︙ | ︙ | |||
2461 2462 2463 2464 2465 2466 2467 | i += indent; j = i; while( i<end && data[i]!='\n' && data[i]!='\r' ) i++; blob_append(&fn.text, data+j, i-j); if( i>=end ) break; blob_append_char(&fn.text, data[i]); i++; | | | 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 | i += indent; j = i; while( i<end && data[i]!='\n' && data[i]!='\r' ) i++; blob_append(&fn.text, data+j, i-j); if( i>=end ) break; blob_append_char(&fn.text, data[i]); i++; if( i<end && data[i]=='\n' && data[i-1]=='\r' ){ blob_append_char(&fn.text, data[i]); i++; } } } footnote_finish: if( !blob_size(&fn.text) ){ |
︙ | ︙ |