wok-current view sundown/stuff/sundown.options.patch @ rev 25695
Up linux 5.10.214, Patch xorg-server (CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Apr 04 08:53:51 2024 +0000 (7 months ago) |
parents | |
children |
line source
1 Enable next extensions in the sundown example:
2 * tables
3 * fenced_code
4 * autolink
5 * strikethrough
6 * space_headers
7 * superscript
8 See `markdown.h` to calculate mkd_extensions value.
10 --- a/examples/sundown.c
11 +++ b/examples/sundown.c
12 @@ -62,7 +62,7 @@
13 ob = bufnew(OUTPUT_UNIT);
15 sdhtml_renderer(&callbacks, &options, 0);
16 - markdown = sd_markdown_new(0, 16, &callbacks, &options);
17 + markdown = sd_markdown_new(222, 16, &callbacks, &options);
19 sd_markdown_render(ob, ib->data, ib->size, markdown);
20 sd_markdown_free(markdown);