md2html/md2html.c


Log

Author Commit Date CI Message
Martin Mitas 2ba5e2c6 2024-01-17T14:48:57 Make --replay-fuzz friendlier to work with in debugger. We make effectively input zero-terminated so debugger doesn't attempt to write more than what's really provided.
Martin Mitas 4a64fee2 2024-01-11T13:12:55 Bump copyright years.
Martin Mitas 338e0bb2 2024-01-10T17:30:51 md2html: Add undoc'ed debug option --replay-fuzz. This helps to reproduce issues found by oss-fuzz project.
Andreas Baumann 47a2ad3d 2024-01-09T11:34:40 added options --html-title and --html-css (#188)
l-m 6ef3be6e 2024-01-08T20:09:57 `MD_FLAG_HARD_SOFT_BREAKS` (#193)
Martin Mitas a470fbf8 2022-01-13T20:34:47 md2html: Change interpretation of --github and --commonmark options. Previously these assigned a set of parser flags with an operator '='. Now '|=' is used so that any preceding options affecting what extensions to allow are not ignored.
Martin Mitas ea188729 2021-07-15T18:58:39 Emit '\n' after the XHTML root tag. Fixes #163.
Kai Koehne e8285942 2021-06-14T09:47:17 Fix MSVC compiler level 3 warnings (#162) Fix various C4244 warnings with the MSVC compiler for 64 bit
Martin Mitas 269bbdb3 2021-02-11T21:39:44 Fix output with --full-html command line options. Fixes #150.
Martin Mitas ddcc1f34 2020-05-04T12:54:15 HTML renderer: Add support for XHTML mode.
Martin Mitas 2728b9eb 2020-04-20T19:37:18 Move md2html utility to a standalone dir.
Martin Mitas 7f2d880f 2019-08-09T09:50:24 Refactor dir structure. We place all the sources in the single directory in order to not having many dirs with too few sources.
Martin Mitas d0e3ed79 2020-03-12T22:45:32 md2html: Skip UTF-8 BOM, if present in the input.
Martin Mitas e33bb733 2020-02-23T02:47:31 md2html: Migrate to cmdline.[hc] from C-Reusables. This fixes many warnings from gcc 9.2.
Martin Mitas af1c0b11 2020-01-27T11:52:07 Change all aux. buffers growing factor to 1.5. This is in general better in order to avoid heap fragmentation. When growing a buffer N times with the old factor of two (and when realloc() cannot just grow in-place), we create a gap 2^N-1 bytes long, but asking for 2^N bytes. This ever-growing hard-to-reuse gap can cause troubles to some heap allocators. See e.g. https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
Martin Mitas 12175f74 2020-01-10T19:37:26 md2html.c: Improve --html output.
Martin Mitáš e6661f23 2020-01-10T19:27:10 Implement an underline extension. (#103) Closes #101.
niblo 43bfa54d 2019-12-10T12:11:40 md2html.c: Fix printing input file name when output cannot be opened. (#99)
niblo e336e640 2019-11-04T15:20:59 Add support for Wiki links (#92) With a new flag MD_FLAG_WIKILINKS, recoginize wiki-style links as [[foo]] and [[foo|bar]]. Update also the HTML renderer accordingly, to output a custom HTML tag <x-wikilink> when seeing it.
Tilman Roeder 8bac86aa 2019-07-07T09:46:10 Added support for LaTeX math (#87) Addresses #86.
Martin Mitáš 8e01a769 2019-02-10T22:58:42 Implement task lists. (#50) Fixes #30.
Martin Mitas 21d6cc9d 2018-04-12T12:03:18 md2html.c: Fix possible overflow in membuf_grow().
Martin Mitas 26c5268e 2018-04-12T11:51:21 md2html.c: Add newline to some error messages.
Martin Mitas 4e831dc1 2017-07-15T18:40:38 Add 2017 into copyright notes.
Martin Mitas f3f9404e 2017-07-14T02:06:23 Improve URL autolinks extension. It is now much more compatible to Cmark-gfm. With the flag MD_FLAG_PERMISSIVEWWWAUTOLINKS, we now also support the WWW autolinks (when the http: scheme is omitted).
Martin Mitas 25a156ee 2017-07-12T23:30:14 Implement strikethrough extension.
Martin Mitas aa51e86f 2017-07-12T22:52:58 md2html/md2html.c: Add options for Markdown dialect. Added support for options --commonmark and --github.
Martin Mitas c377f567 2016-12-16T10:06:07 Add some versioning info. * md4c.h now contains macros MD_VERSION_xxxx. * md2html has option --version. (Of course those shall have some meaningful values only when we introduce some release process.)
Martin Mitas c850843c 2016-12-16T09:47:06 md2html: Isolate HTML renderer into render_html.c (issue #8).
Martin Mitas c085ab5c 2016-12-12T23:23:51 Implement support for entities outside normal text flow (issue #5). * Change API (md4c.h) to propagate different substring type info to renderer. * Implement/refactor related code in the parser. * Adapt renderer (md2html) to the new API.
Martin Mitas 09ae8609 2016-12-07T23:56:47 Handle images more like links. Remove MD_SPAN_IMG_DETAIL::alt. Instead, the contents of the image is propagated to the renderer via MD_RENDERER::text() callback. * This fixes handling of entities inside the image text (issue #4). * It simplifies parsing and, more importantly, it better distingusshes what is responsibility of parser or renderer respectively. * This allows more flexibility on renderers side. Renderer who do not * really support images can just output the image content as any other text. The cost is a renderer into HTML (if it wants to render image contents into the attribute ALT of the IMG tag), has to handle images with more care. Typically such renderer has to track whether it is inside an image, and if so, then render span enter/leave as an empty string.
tin-pot 0d10f6db 2016-12-05T12:34:29 md2html.c: No need for <stdint.h>
tin-pot bc52610e 2016-12-05T12:21:07 Fix signed/unsigned comparisons. This removes a lot of MSVC warnings.
Martin Mitas a930e46f 2016-11-24T15:04:47 Fix build with MSVC.
Martin Mitas 54028ed7 2016-11-24T14:16:47 Implement ordered lists.
Martin Mitas b86c7f28 2016-11-24T11:31:28 Implement unordered lists.
Martin Mitas be7fcc16 2016-11-21T09:47:31 Implement tables. Note it is implemented as an extension. To enable it, the flag MD_FLAG_TABLES must be explicitly specified.
Martin Mitas 9f1c4b58 2016-11-21T09:48:08 Fix macro MD_FLAG_PERMISSIVEAUTOLINKS.
Martin Mitas 7d7d3b40 2016-11-21T02:41:39 md2html: Implement URL escaping.
Martin Mitas 20434c8a 2016-11-21T02:08:34 Implement images.
Martin Mitas 36643f4a 2016-11-20T00:16:16 md2html: Fix name of link attribute 'title'.
Martin Mitas 1a247795 2016-11-10T13:22:29 Implement link reference definitions and, partially, link references.
Martin Mitas 7c9f5982 2016-11-07T19:48:16 Fix typo in debug output.
Martin Mitas ef5f230f 2016-10-14T19:56:05 Implement permissive autolinks extensions. With MD_FLAG_PERMISSIVEURLAUTOLINKS, we treat not overly complicated URLs as autolinks even without '<' and '>'. With MD_FLAG_PERMISSIVEEMAILAUTOLINKS, we treat not overly complicated e-mail addresses as autolinks even without '<', '>' and without the 'mailto:' scheme. Also expanded md2html utility and tests to cover these.
Martin Mitas 296c8318 2016-10-13T19:04:36 Implement emphasis and strong emphasis.
Martin Mitas a7899c05 2016-10-11T02:34:01 Implement autolinks.
Martin Mitas 1cfc6a5f 2016-10-11T01:10:11 Incorporate the specification testsuite from CommonMark.
Martin Mitas 2b740798 2016-10-11T00:36:39 Implement insecure character (NULL) replacement.
Martin Mitas de2338ec 2016-10-09T00:42:30 Fix: By default, do not collapse whitespace.
Martin Mitas 14090e2e 2016-10-08T23:30:49 md2html: Output new-line after "</blockquote>".
Martin Mitas 87b41e1a 2016-10-07T20:39:42 Implement entities.
Martin Mitas a284a382 2016-10-06T23:50:56 Implement code spans.
Martin Mitas 33258e68 2016-10-04T21:18:30 Implement block quotes.
Martin Mitas 279ec8f6 2016-10-04T20:46:10 Implement soft and hard line breaks.
Martin Mitas e0127581 2016-10-04T20:29:22 Implement raw HTML blocks.
Martin Mitas d2da226c 2016-10-04T19:48:06 Implement fenced code blocks.
Martin Mitas 43bd2844 2016-10-04T03:26:56 Implemented indented code blocks.
Martin Mitas 80984c98 2016-10-04T02:18:47 Little code clean-up.
Martin Mitas 0225f337 2016-10-04T00:55:32 Implement ATX headers.
Martin Mitas 63a92c08 2016-10-04T00:18:08 Implement thematic breaks (<hr>).
Martin Mitas efed58af 2016-10-03T20:17:15 Initial commit.