md2html


Log

Author Commit Date CI Message
Martin Mitas ae5ca894 2019-07-12T08:44:53 md2html/CMakeLists.txt: Use INSTALL(TARGETS) instead of INSTALL(PROGRAMS). Fixes #88.
Tilman Roeder 8bac86aa 2019-07-07T09:46:10 Added support for LaTeX math (#87) Addresses #86.
Craig Barnes f0de1990 2019-06-24T21:56:50 Add man page for md2html program (#85) Fixes #56
Martin Mitas c4e6ddc3 2019-05-20T21:27:20 md2html/render_html.h: Add extern "C" when included in C++. Seems some people desire to use the HTML renderer in C++ projects, so lets make this as the 1st step in making it easy :-)
Martin Mitas 56f8bbb1 2019-05-19T15:12:32 Implement/improve some optimizations, both in the parser and HTML renderer.
Martin Mitas ef64fd38 2019-05-13T10:46:50 render_html.c: Improve RENDER_LITERAL to not cause warnings in MSVC 2017.
Martin Mitas 19504cad 2019-04-29T22:24:23 Revert "Build: With gcc and clang, enforce -std=c90." This reverts commit 716b6ca4448318df900eb22bb7a31499a827d905. Rationale: snprintf() not available in C90, so -std=c90 causes warnings on Linux.
Martin Mitas 716b6ca4 2019-04-17T15:01:03 Build: With gcc and clang, enforce -std=c90. See #71. This forces us to be more conservative in the future code changes, and make us more friendly mainly to some embedded compilers who are often behind the current state of art. Fix also related warnings and errors, as provided by gcc 8.1.0.
Martin Mitáš 8e01a769 2019-02-10T22:58:42 Implement task lists. (#50) Fixes #30.
Lisandro Damián Nicanor Pérez Meyer 5f33d933 2019-02-07T15:54:25 Build md4c as a shared library. (#49) Build md4c as a shared library. - Define the current version in the main CMakeLists.txt, so it can be used within the project. - Define VERSION, SOVERSION and PUBLIC_HEADER as target properties. - Be able to install both libmd4c and md2html. - Create a pkg-config file. Fixes #48
Martin Mitas 00236fc7 2019-02-05T12:59:44 Update years in the files changed this year and in LICENSE.md.
Martin Mitas 03f58685 2019-02-05T10:13:34 md4c.h: Rename and refactorize MD_RENDERER struct. * Rename MD_RENDERER to MD_PARSER. (Typedef to provide the original name is provided to minimize disruption of existing code.) * Reorder its members to make better sense. * Add abi_version member (hopefully, it shall never be needed ;-) * Update md2html utility to deal with the change. Rationale: This is done in order to prepare for long-term maintenance of ABI compatibility, as there is no work-in-progress to be buildable as shared lib, and be included in some Linux distros.
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 5f47a5cb 2017-09-11T10:55:21 md_build_attribute: Handle U+0000 character.
Martin Mitas 8bfb6785 2017-08-28T16:16:59 render_html: Get rid of global variable. This is a residue which by mistake survived the isolation of the rendering code in the c850843c12468c6bd500b4c1d86653bdac5628d4.
Martin Mitas dc3dde78 2017-08-28T16:14:04 render_html: Add a new line after <ol>. This makes the behavior more consistent with <ul>.
Martin Mitas 4e831dc1 2017-07-15T18:40:38 Add 2017 into copyright notes.
Martin Mitas 1bc7f3a8 2017-07-14T02:22:15 render_url_escaped: Fix escaping of ampersand. This affected generating href attribute if links or src attribute of images.
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 82c0eb53 2017-07-13T16:23:45 entity_lookup: Make it return UTF-32 codepoints. And adapted callers accordingly. Fixes #12.
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 ba686ec3 2016-12-16T10:16:17 render_html.c: Fix build with MSVC.
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 c9ef8ccb 2016-12-16T09:59:03 render_html.c: Unify use of char versus MD_CHAR.
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.