Martin Mitas
a997cb21bf
Add MD_BLOCK_TABLE_DETAIL.
...
This allows renderers to have the info about table dimension (table
column and row count) in advance and e.g. simplify their memory
allocation strategy.
2020-11-13 11:59:49 +01:00
Martin Mitas
4585088ad7
md_analyze_permissive_url_autolink: Better GFM compatibility.
...
The autolinks now allow unmatched parenthesis, only the trailing
parenthesis closers are handled specially to deal with the situation the
autolink is all inside an outer parenthesis.
Somehow our tests were broken and avoided the cases with unmatched
parenthesis pairs inside the auto-link. That's now fixed and in sync
with GFM specs too.
Fixes #135 .
2020-11-13 10:22:34 +01:00
Martin Mitas
c3a18d5587
md_collect_marks: continue -> break
...
Does not cause any change in behavior: we just avoid needless loop
iterations now.
2020-11-13 09:28:56 +01:00
Martin Mitas
baa1dd06eb
Fix some English wording in comments.
2020-11-09 16:03:00 +01:00
Rasmus Andersson
125e8e03e6
Initializes an uninitilized variable in md_analyze_emph
...
Fixes the following, reported by clang analysis:
src/md4c.c:3729:61: warning: variable 'opener_index' may be uninitialized when used here [-Wconditional-uninitialized]
MD_MARKCHAIN* opener_chain = md_mark_chain(ctx, opener_index);
^~~~~~~~~~~~
src/md4c.c:3686:25: note: initialize the variable 'opener_index' to silence this warning
int opener_index;
^
= 0
2020-10-24 19:26:57 +02:00
Rasmus Andersson
1a2f4816a7
Adds missing field initializers (undefined behavior)
...
src/md4c.c:5667:72: warning: missing field 'beg' initializer [-Wmissing-field-initializers]
static const MD_LINE_ANALYSIS md_dummy_blank_line = { MD_LINE_BLANK, 0 };
2020-10-24 19:02:48 +02:00
Martin Mitas
002f76c975
md_resolve_links: Skip [...] used as a reference link/image label.
...
Fixes #131 .
2020-10-18 09:43:06 +02:00
Martin Mitas
22ca89a300
Fix ISANYOF encountering a zero byte in the input.
...
When it happened, it could lead to unexpected results, including broken
internal state of the parser.
Fixes #130 .
2020-09-29 21:33:43 +02:00
Karsten
440ccd82f3
Update md4c.h
2020-08-19 10:13:23 +02:00
Martin Mitas
9651f78051
Improve docs comments.
2020-08-16 11:28:21 +02:00
Martin Mitas
67214417dd
Make mark_chain[] helper macro definitions safer.
2020-08-05 10:53:52 +02:00
Martin Mitas
70d0ef7c91
Avoid simple {0} to initialize a more complex object.
...
Should fix #125 .
2020-08-05 09:18:41 +02:00
Martin Mitas
c501c891b9
Fix spelling of "than" in many occurances.
...
I often spell it errorneously as "then". Doing this mistake way too
often when typing fast.
2020-07-30 10:13:05 +02:00
Martin Mitas
c595c2ed00
md_process_verbatim_block_contents: Fix off by 1 error.
...
This caused outputting wrong indentation inside a fenced code blocks for
lines indented with mor ethan 16 spaces.
Fixes #124 .
2020-07-30 08:38:19 +02:00
Nazar Vinnichuk
4ad801b771
Replace deprecated MD_RENDERER mentions in md4c.h.
2020-07-28 07:15:27 +02:00
Evan Klitzke
da27ee0dcd
fix a comment typo in md4c-html.h, md_render_html -> md_html
2020-07-12 22:20:18 +02:00
Martin Mitas
dec6e22b0e
Fix entity rendering with MD_HTML_FLAG_VERBATIM_ENTITIES.
...
Fixes #118 .
2020-06-27 20:27:28 +02:00
Dominick C. Pastore
3e5d64bf44
Add missing <img /> tag to XHTML support ( #116 )
2020-05-29 16:42:38 +02:00
Martin Mitas
72dad97ed6
scripts/build_folding_map.py: Handle properly "ranges" of length 2.
...
Update the data structures in md_get_unicode_fold_info() to reflect the
update in the script and handle the previously omitted characters.
Fixes #113 .
2020-05-20 16:44:07 +02:00
Dmitry Atamanov
3d64d6be9b
Update to Unicode 13.0 ( #111 )
2020-05-07 23:13:55 +02:00
Martin Mitas
ddcc1f34df
HTML renderer: Add support for XHTML mode.
2020-05-04 12:54:15 +02:00
Martin Mitas
2728b9eb0f
Move md2html utility to a standalone dir.
2020-04-20 19:37:18 +02:00
Martin Mitas
ce8c66060c
Fix the build.
2020-04-20 19:32:13 +02:00
Martin Mitas
1f78c867ff
Rename HTML renderer public identifier names.
...
This is to reflect we make it a public API.
2020-04-20 19:24:28 +02:00
Martin Mitas
77c2669bd1
Update generating pkgconfig .pc files.
...
* Output also package URL.
* Output also package description.
* Output also package version.
* Generate .pc file for the new renderer lib.
2020-04-20 19:22:42 +02:00
Martin Mitas
ed0ef280b3
Build the HTML renderer as a standalong library.
2020-04-20 19:22:42 +02:00
Martin Mitas
7f2d880f9a
Refactor dir structure.
...
We place all the sources in the single directory in order to not having
many dirs with too few sources.
2020-04-20 19:22:42 +02:00