|
4fc808d8
|
2021-03-29T12:51:48
|
|
md_analyze_line: Avoid reading 1 byte beyond the input size.
Fixes #155.
|
|
aa654230
|
2021-03-22T14:00:35
|
|
md_enter_child_containers: Propagate list mark character properly.
Fixes #153, #154.
|
|
3478ec69
|
2021-02-23T14:01:31
|
|
Added fuzzer for oss-fuzz integration. (#151)
|
|
269bbdb3
|
2021-02-11T21:39:44
|
|
Fix output with --full-html command line options.
Fixes #150.
|
|
fe2f2427
|
2021-02-11T11:35:54
|
|
Fix copy&paster error in a comment.
|
|
fd7b5fe0
|
2021-02-05T21:40:47
|
|
md_analyze_line: Fix implicit ending of HTML blocks...
... when the HTML block is not explicitly ended (before the enclosing
container block ends).
Fixes #149.
|
|
2b6ebdfa
|
2021-01-09T11:54:27
|
|
Fix use of the cmake package (#146)
Fix use of the cmake package
Fix use of the cmake package and its imported targets.
Make sure that the include dir comes with the cmake targets
Put everything under md4cConfig so that the md4c-html can see
md4c.
Use md4c namespace so that the targets become md4c::md4c and
md4c::md4c-html following cmake standards for imported targets.
Fixes #145.
|
|
aa63198b
|
2020-12-24T15:04:35
|
|
Bump version to 0.4.7.
|
|
9ba57ccb
|
2020-12-14T19:53:58
|
|
md_link_label_cmp_load_fold_info: Remove a bogus code.
The input into the function is already guaranted to not have a new line
characters. (And handling of them in the function was broken anyway.)
|
|
da5821ae
|
2020-12-14T19:53:40
|
|
Fix testcase for issue #142.
|
|
5a44e327
|
2020-12-14T18:59:56
|
|
md_link_label_cmp: Fix the loop end condition.
The old version likely could stop prematurely in a corner case when
there was a Unicode character at the end of the either string, which
maps into multiple fold info codepoints.
Fixes #142.
|
|
d4a78622
|
2020-12-14T18:49:35
|
|
Minor cleanup.
|
|
701a0626
|
2020-12-14T18:45:54
|
|
Make MD_UNICODE_FOLD_INFO::n_codepoints unsigned.
|
|
569defae
|
2020-12-14T01:25:26
|
|
Silence -Wimplicit-fallthrough warnings
Use a macro that dispatches to the compiler-specific magic
to silence implicit fallthrough warnings when the fallthrough
was actually intended. The code already featured comments,
so these are actually safe to place.
(Unfortunately, Clang does not recognize any comment as
"fall through" comment, and GCC only recognizes some variations
of "fall through", not "pass through". Moreover, one of the
comments replaced here had a typo...)
|
|
e1b41876
|
2020-12-14T01:24:56
|
|
Enable more warnings when building under GCC/Clang
|
|
a45f839b
|
2020-12-14T12:21:50
|
|
Fix mixed signed/unsigned comparisons
Force both operands to unsigned. n_codepoints does not seem to ever
contain negative offsets anyhow, should it actually be unsigned?
|
|
6dd64346
|
2020-12-14T01:40:40
|
|
Silence "unused parameter" warnings
Merely added a suitable macro. Didn't refactor any code to
actually figure out why the parameters were not used.
|
|
26003b88
|
2020-12-04T20:42:22
|
|
md_is_container_mark: Recognize list item marks just before EOF.
We were recognizing the list item marks when a new line or a blank
character follows.
However, given end-of-file means implicitly also an end-of-line, we
should recognize in that situation too.
Fixes #139.
|
|
3254b7cb
|
2020-11-13T12:02:39
|
|
md_process_table_block_contents: Suppress empty TBODY block generation.
When the table has no body rows, do not call the callback with
MD_BLOCK_TBODY events.
Fixes #138.
|
|
a997cb21
|
2020-10-18T09:34:10
|
|
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.
|
|
4585088a
|
2020-11-13T10:16:34
|
|
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.
|
|
c3a18d55
|
2020-11-13T09:27:10
|
|
md_collect_marks: continue -> break
Does not cause any change in behavior: we just avoid needless loop
iterations now.
|
|
baa1dd06
|
2020-11-09T16:02:06
|
|
Fix some English wording in comments.
|
|
23621a61
|
2020-11-05T18:40:46
|
|
added power support arch ppc64le on YML file.
Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le.
|
|
125e8e03
|
2020-10-18T10:18:11
|
|
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
|
|
1a2f4816
|
2020-10-18T10:56:49
|
|
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 };
|
|
1b2840cb
|
2020-10-18T09:41:37
|
|
adds /build dir to gitignore
Documentation https://github.com/mity/md4c/wiki/Building-MD4C says to use
build/ for cmake. I noticed that .gitignore contains a directory called
build-aux -- perhaps the author were using that and either forgot to update
the gitignore file or the documentation.
|
|
002f76c9
|
2020-10-18T09:37:45
|
|
md_resolve_links: Skip [...] used as a reference link/image label.
Fixes #131.
|
|
601885f7
|
2020-09-30T11:44:48
|
|
Bump version to 0.4.6.
|
|
22ca89a3
|
2020-09-29T21:33:43
|
|
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.
|
|
bcdbd126
|
2020-09-17T09:55:33
|
|
scripts/build_folding_map.py: Fix/improve a comment.
|
|
440ccd82
|
2020-08-19T10:03:31
|
|
Update md4c.h
|
|
9651f780
|
2020-08-16T11:28:21
|
|
Improve docs comments.
|
|
db7d1c92
|
2020-08-16T10:56:19
|
|
Bump version to 0.4.5.
|
|
67214417
|
2020-08-05T10:53:33
|
|
Make mark_chain[] helper macro definitions safer.
|
|
70d0ef7c
|
2020-08-05T09:18:41
|
|
Avoid simple {0} to initialize a more complex object.
Should fix #125.
|
|
3980028a
|
2020-08-03T16:57:45
|
|
README.md: Some minor improvements.
|
|
c501c891
|
2020-07-30T10:13:05
|
|
Fix spelling of "than" in many occurances.
I often spell it errorneously as "then". Doing this mistake way too
often when typing fast.
|
|
c595c2ed
|
2020-07-30T08:38:19
|
|
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.
|
|
470b42c7
|
2020-07-28T08:12:57
|
|
README.md: Fix a typo.
|
|
0c4d7f3d
|
2020-07-28T07:18:23
|
|
test/normalize.py: Use html.escape instead of cgi.escape.
Fixes #123.
|
|
4ad801b7
|
2020-07-26T23:12:57
|
|
Replace deprecated MD_RENDERER mentions in md4c.h.
|
|
1b437db5
|
2020-07-23T10:23:25
|
|
README.md: Small rewording.
|
|
2aa694a3
|
2020-07-22T10:52:29
|
|
README.md: Small clarification.
|
|
da27ee0d
|
2020-07-12T12:49:08
|
|
fix a comment typo in md4c-html.h, md_render_html -> md_html
|
|
5b1d5db0
|
2020-06-28T09:09:38
|
|
Add .gitignore
|
|
2ef9bc4f
|
2020-06-28T16:20:17
|
|
README.md: Small update.
|
|
dec6e22b
|
2020-06-27T20:27:28
|
|
Fix entity rendering with MD_HTML_FLAG_VERBATIM_ENTITIES.
Fixes #118.
|
|
7021024d
|
2020-05-29T17:21:21
|
|
Bump version to 0.4.4.
|
|
4e7da1c1
|
2020-05-29T17:16:22
|
|
CHANGELOG.md: Improve some wording.
|
|
84fddf48
|
2020-05-29T17:12:01
|
|
README.md: Small assorted updates.
|
|
3e5d64bf
|
2020-05-29T10:42:38
|
|
Add missing <img /> tag to XHTML support (#116)
|
|
4eaa83b2
|
2020-05-20T17:17:16
|
|
Update CHANGELOG.md.
|
|
72dad97e
|
2020-05-20T16:44:07
|
|
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.
|
|
25096c7c
|
2020-05-07T23:14:59
|
|
CHANGELOG.md: Update.
|
|
3d64d6be
|
2020-05-08T02:13:55
|
|
Update to Unicode 13.0 (#111)
|
|
47b21fb5
|
2020-05-04T12:57:41
|
|
CHANGELOG.md: Fix the spelling of the HTML renderer flags.
|
|
ddcc1f34
|
2020-05-04T12:54:15
|
|
HTML renderer: Add support for XHTML mode.
|
|
0baa0fe4
|
2020-04-29T11:59:12
|
|
Add a link to PyMD4C in README.md (#110)
|
|
37f57ed6
|
2020-04-28T08:11:28
|
|
Merge pull request #89 from mity/refactor
Refactor:
* Move the HTML renderer code from md2html to src dir.
* Build the HTML renderer as a standalone library.
|
|
711fff1c
|
2020-04-28T08:08:18
|
|
CHANGELOG.md: Add a note about the new standalone HTML renderer lib.
|
|
2728b9eb
|
2020-04-20T19:37:18
|
|
Move md2html utility to a standalone dir.
|
|
ce8c6606
|
2020-04-20T19:32:13
|
|
Fix the build.
|
|
da6f519d
|
2019-12-16T11:58:36
|
|
README.md: Update to reflect the changes for the HTML converter.
|
|
1f78c867
|
2019-08-09T10:29:55
|
|
Rename HTML renderer public identifier names.
This is to reflect we make it a public API.
|
|
77c2669b
|
2019-08-09T10:15:05
|
|
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.
|
|
ed0ef280
|
2019-08-09T09:57:42
|
|
Build the HTML renderer as a standalong library.
|
|
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.
|
|
f9da1997
|
2020-03-14T11:20:07
|
|
md_is_link_reference_definition: Fix error paths.
|
|
d0e3ed79
|
2020-03-12T22:45:32
|
|
md2html: Skip UTF-8 BOM, if present in the input.
|
|
a4136b81
|
2020-03-02T15:31:57
|
|
Get rid of IS_INPUT_STR() macro.
It has relied on a behavior undefined in C standard, so lets use
explicit flags remembering whether we need to free the strings or not.
Fixes #109.
|
|
e33bb733
|
2020-02-23T02:47:31
|
|
md2html: Migrate to cmdline.[hc] from C-Reusables.
This fixes many warnings from gcc 9.2.
|
|
2b294a2c
|
2020-02-18T10:24:21
|
|
README.md: Add QOwnNotes into SW using us.
|
|
ebed9afa
|
2020-02-17T18:04:55
|
|
Migrate from travis-ci.org to travis-ci.com.
See https://docs.travis-ci.com/user/migrate/open-source-on-travis-ci-com/
|
|
9e6ab76c
|
2020-02-17T12:41:50
|
|
Minor fuzz-input cleanup.
Move some permissive links incorrectly placed in commonmark.md into
gfm.md.
|
|
9b101afd
|
2020-02-17T12:15:21
|
|
Bump version 0.4.3.
|
|
cc9a9d28
|
2020-02-16T15:29:54
|
|
test/fuzz-test: Add some fuzzing testing initial input.
|
|
5d7c3597
|
2020-02-16T13:46:16
|
|
md_analyze_emph: Detect correctly opener chain when resolving the range.
Fixes #107.
|
|
e278609e
|
2020-02-15T12:05:23
|
|
README.md: Few more wording improvements.
|
|
259c94dd
|
2020-02-14T21:35:40
|
|
README.md: Minor wording improvements.
|
|
e00a9e1a
|
2020-02-13T12:47:23
|
|
Travis CI: Enforce -Wdeclaration-after-statement -Werror and newer distro image.
|
|
437427c8
|
2020-02-13T11:37:01
|
|
CHANGELOG.md: Describe the recent changes for wiki-links.
|
|
03119753
|
2020-02-13T09:51:11
|
|
md_resolve_links: Fix scanning over dummy marks.
|
|
b4c30cd6
|
2020-02-13T02:23:03
|
|
Improve wiki-link parsing.
* Get rid of MD_LINE::total_indent.
* Remove some special complicated branching for nested images: Instead
we use md_rollback() the wiki-link destination span to kill _any_
marks resolved so far, including the images.
* Remove any length limit from label. Only destination length is
limited, regardless of whether '|' is present or not.
* Move the special handling of `[[foo|]]` from md_process_inlines()
into md_resolve_links(). We simply expand the closer mark to consume
the `|`.
* Do not modify the opener and closer marks until we really know it
is indeed a wiki-link.
|
|
df582785
|
2020-02-12T22:18:01
|
|
travis CI: Enforce -std=c89.
Also fix all related warnings and errors. This should help Qt team which
needs to build MD4C with Integrity compiler for some embedded platforms.
|
|
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
|
|
6709a869
|
2020-01-16T17:09:41
|
|
MD_LINK_ATTR: Add flag title_needs_free.
Use the flag to prpagate to md_resolve_links() whether the retrieved
link title needs to be freed by the caller or not.
Fixes #105.
|
|
4eb4e1dc
|
2020-01-16T16:34:00
|
|
CHANGELOG.md: Remove the record for #104 because previous versions were not affected.
|
|
403043bb
|
2020-01-16T16:15:08
|
|
md_mark_chain_append: Set next of the tail mark to -1.
Fixes #104.
|
|
12175f74
|
2020-01-10T19:37:26
|
|
md2html.c: Improve --html output.
|
|
e6661f23
|
2020-01-10T19:27:10
|
|
Implement an underline extension. (#103)
Closes #101.
|
|
cafe872c
|
2020-01-10T16:13:32
|
|
md_analyze_link_contents: Simplify.
|
|
82d7d087
|
2020-01-10T15:48:00
|
|
Rework/improve recognition of strike-through spans.
Closes #102.
|
|
78850528
|
2020-01-07T00:33:05
|
|
Update copyright note year.
|
|
561f52e0
|
2020-01-05T18:33:46
|
|
md_is_autolink_email: Fix an off-by-one error.
Fixes #100.
|
|
1a984d23
|
2020-01-05T18:07:37
|
|
Minor code formatting clean-up.
|
|
fa75676e
|
2020-01-02T15:09:57
|
|
md_build_ref_def_hashtable: Minor cleanup.
* Add some comments.
* Make complex hastable buckets start at 2 records instead of 4.
Some experiments show there may be about 20% collisions in documents
with too many reference links but the buckets rarely need more then
the 2 records so it is just a memory wasting.
|
|
9b0014e4
|
2020-01-02T14:30:53
|
|
CHANGELOG.md: Minor wording improvement.
|
|
c9a3e1e9
|
2020-01-02T14:14:01
|
|
Make md_strchr() macro calling strchr() (or wcschr())...
... instead of providing our own implementation.
|
|
e1216dae
|
2020-01-02T14:04:01
|
|
Simplify/unify some temp. string buffer memory management.
|