Commit Graph

33 Commits

Author SHA1 Message Date
Martin Mitáš
e7c4392cd1
CI: Run test also on Windows runners. 2024-02-04 01:46:01 +01:00
Martin Mitas
ef4dcd41df Updated spec.txt expands what's recognized as Unicode punctuation.
Namely all P and S general categories are now treated as punctuation.
2024-01-28 09:00:08 +01:00
Martin Mitáš
d955c495ee
Rework permissive autolinks. (#220)
* We have now dedicated run over the inline marks for them.

 * We check more throughly whether it really looks as an URL or e-mail
   address. The old implementation recognized even heavily broken ones.

 * This allows us to be much more careful in order not to cross already
   resolved marks.

 * Share substantial parts of the code between all three types of the
   permissive autolinks (URL, WWW, e-mail).

 * Merge their tests into one file, spec-permissive-autolinks.txt.

 * Add one pathological case which triggered quadratic behavior in the
   old implementation.
2024-01-17 02:48:57 +01:00
Martin Mitas
a715b884ac Rename many files in test dir for better organization. 2024-01-16 19:05:52 +01:00
Martin Mitas
6685df9c50 Move all regression tests into new tests/regressions.txt.
(And update scripts/run-tests.sh accordingly.)
2024-01-16 15:09:33 +01:00
Martin Mitas
74e5f7a9a7 Tests: Specify md2html command line options for each example as needed.
Previously the caller (or the script scripts/run_tests.sh) needed to
know what options to specify.
2024-01-16 14:56:09 +01:00
Martin Mitas
e25ea3d182 Update list of named entities. 2024-01-11 03:34:24 +01:00
Martin Mitas
61949ee9d1 Update to Unicode 15.1. 2024-01-09 02:08:48 +01:00
l-m
6ef3be6e69
MD_FLAG_HARD_SOFT_BREAKS (#193) 2024-01-08 21:09:57 +01:00
Martin Mitas
bcdbd126a5 scripts/build_folding_map.py: Fix/improve a comment. 2020-09-17 09:55:33 +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 Mitáš
e6661f23dc
Implement an underline extension. (#103)
Closes #101.
2020-01-10 19:27:10 +01:00
niblo
e336e6404f 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.
2019-11-04 15:20:59 +01:00
Martin Mitas
2e965941ed Add/improve docs for the LaTeX math spans. 2019-07-07 10:59:20 +02:00
Tilman Roeder
8bac86aa43 Added support for LaTeX math (#87)
Addresses #86.
2019-07-07 10:46:10 +02:00
Martin Mitas
4f6a9e546f Update Unicode support to 12.1.
* scipts/build_*_map.py: Implement helper pythonic scripts used to
   generate some Unicode search maps and data for helper Unicode
   functions used in MD4C.

   This should simplify updating to future Unicode versions.

 * md_get_unicode_fold_info: Use data generated by the scripts.

 * md_is_unicode_whitespace__: Ditto.

 * md_is_unicode_punct__: Ditto.
2019-05-19 11:00:40 +02:00
Martin Mitáš
8e01a769ea
Implement task lists. (#50)
Fixes #30.
2019-02-10 22:58:42 +01:00
Martin Mitas
3cf6637b00 run-tests.sh: Use 'py' utility if available. 2017-12-10 16:11:36 +01:00
Martin Mitas
938460d564 Improve/unify output of test scripts. 2017-07-25 03:25:42 +02:00
Martin Mitas
26f14899ed Add pathological_tests.py from cmark. 2017-07-24 20:12:13 +02:00
Martin Mitas
f3f9404e53 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).
2017-07-14 02:06:23 +02:00
Martin Mitas
25a156ee1b Implement strikethrough extension. 2017-07-12 23:30:14 +02:00
Martin Mitas
23312d6d65 md_is_html_tag: Fix parsing unquoted attribute value (issue #2). 2016-12-05 11:13:43 +01:00
Martin Mitas
be7fcc16ff Implement tables.
Note it is implemented as an extension. To enable it, the flag MD_FLAG_TABLES
must be explicitly specified.
2016-11-21 13:39:45 +01:00
Martin Mitas
e5225137a4 scripts/coverity.sh: chmod 755 2016-10-24 10:58:23 +02:00
Martin Mitas
ef5f230ffa 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.
2016-10-14 19:56:05 +02:00
Martin Mitas
c3e634087e scripts/run-tests.sh: Fix permissions. 2016-10-11 01:19:50 +02:00
Martin Mitas
8fd97d7840 scripts/run-tests.sh: Fix typo. 2016-10-11 01:11:21 +02:00
Martin Mitas
1cfc6a5f42 Incorporate the specification testsuite from CommonMark. 2016-10-11 01:10:11 +02:00
Martin Mitas
7d7f0d06e0 scripts/run-commonmark-tests.sh: Make the script more robust. 2016-10-07 02:49:37 +02:00
Martin Mitas
78674f0a4e Add script for building for Coverity scan. 2016-10-05 01:51:25 +02:00
Martin Mitas
2d21382f57 Run CommonMark testsuite when building on travis.ci.org. 2016-10-03 21:42:45 +02:00