Fossil

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

21 most recent check-ins related to "markdown-footnotes"

2022-04-23
21:32
Extend Markdown with footnotes support. See known limitations and the corresponding forum thread. (check-in: 3990518b user: george tags: trunk)
17:23
Change signature of add_inline_footnote() in order to move away from returning of unreliable pointer. Amend a few comments. Fix a couple of minor issues that fuzzer complains about. (Closed-Leaf check-in: 0850862e user: george tags: markdown-footnotes)
15:56
Fix a possible heap-buffer-overflow in parse_htmlblock() introduced by [1e919d601f774fdb]. This is not related to footnotes but was revealed by fuzzing (case 80cbb6b185807e98a953426af7b1f802c9d13957). (check-in: bc4c5b63 user: george tags: markdown-footnotes)
2022-04-22
12:49
Remove redundant assert() that fails for the case when the content of a span-bounded inline footnote is rendered into a void. This is a corner case that was revealed via fuzzing. (check-in: cab8a586 user: george tags: markdown-footnotes)
2022-04-21
22:31
Add a test case for fragment-bounded footnote that contains markup within the corresponding text fragment. (check-in: d38ec43d user: george tags: markdown-footnotes)
21:13
Fix another use-after-realloc bug in handling of inline footnotes which was discovered during fuzzing. Also fix a few other issues revealed via fuzzer. (check-in: c5456211 user: george tags: markdown-footnotes)
13:36
Revert Makefile.in to normal builds (leave a few comments about fuzzing). (check-in: 94077966 user: george tags: markdown-footnotes)
13:16
Fix a use-after-free bug in handling of nested inline footnotes. The bug was discovered by fuzzing with '-fsanitize=fuzzer,undefined,address -DFOSSIL_FUZZ' appended to TCCFLAGS in Makefile.in. It's noteworthy that the ',undefined,address' part was essential to find the bug (otherwise just 'double-free' was reported). Many thanks to Stephan for documenting the fuzzing procedures and support. (check-in: 31e5df5f user: george tags: markdown-footnotes)
2022-04-20
14:07
Added a missing blob initializer. (check-in: 72095938 user: stephan tags: markdown-footnotes)
11:48
Merged in trunk for fuzz.c changes. (check-in: c9f40135 user: stephan tags: markdown-footnotes)
11:46
Correct fuzz.c to honor --fuzztype markdown and add --fuzztype wiki2 which works like its previous --fuzztype wiki behavior, sending all inputs through both the fossil-wiki and markdown translators. Added a fatal error for --fuzztype artifact, as that tester is not implemented. (check-in: 8d4c4792 user: stephan tags: trunk)
2022-04-19
15:25
Remove unnecessary field from the auxiliary union 'bitfield64_t' and amend the corresponding comments. Also add comment about FOOTNOTES_WITHOUT_URI macro. (check-in: cf1e9691 user: george tags: markdown-footnotes)
12:35
Code style tweaks, typos, and resolved a couple footnotes-related cosmetic TODOs. No functional changes. (check-in: 3a5b3d5e user: stephan tags: markdown-footnotes)
11:41
Merged in latest trunk to simplify code review and ease potential upcoming merge to trunk. (check-in: 8a4b099f user: stephan tags: markdown-footnotes)
2022-04-16
16:29
Minor spelling corrections. No change in functionality. (check-in: 53754fff user: andybradford tags: trunk)
2022-02-23
12:33
Count overnesting as the fourth type of the footnote-related issues and report accordingly. (check-in: ae297bb6 user: george tags: markdown-footnotes)
09:45
Minor refactoring. Move the definition of BLOB_APPEND_LITERAL() macro from markdown_html.c to blob.c so that it could be used outside of markdown_html.c. Also rename it to lowercase for consistency with other API. Within markdown.c use that newly available macro instead of blob_append_string(). Within markdown_html.c use it for footnotes-relevant code. Other invocations of BLOB_APPEND_LITERAL() within markdown_html.c are left intact (they use an alias) in order to simplify the potential merge with the trunk. (check-in: c8a8d0c9 user: george tags: markdown-footnotes)
08:21
Minor refactoring. Move the definition of BLOB_APPEND_BLOB() macro from markdown_html.c to blob.c so that it could be used outside of markdown_html.c. Also rename it to blob_appendb() for consistency with blob_appendf() and other API. Within markdown.c use that newly available macro where appropriate. Within markdown_html.c use it for footnotes-relevant code. Other invocations of BLOB_APPEND_BLOB() within markdown_html.c are left intact (they use an alias) in order to simplify the potential merge with the trunk. (check-in: 33a681eb user: george tags: markdown-footnotes)
07:36
Fix handling of user-provided classes for unreferenced, joined and overnested footnotes. In all these cases the tokens of user-provided classes are rendered as plain-text and no special classes are added anywhere. (check-in: 875472a8 user: george tags: markdown-footnotes)
2022-02-21
05:14
Add a comment for append_footnote_upc(). Also substitute a variable of zero value with just "0" constant. No functional changes. (check-in: ae8a3dd5 user: george tags: markdown-footnotes)
04:29
Impose a limit on the depth of nesting of inline footnotes. Also add a few test cases: for depth limiting and HTML hijacking. (check-in: f4ff013a user: george tags: markdown-footnotes)