|
716da8b0
|
2024-01-13T11:44:27
|
|
CHANGELOG.md: Fix typo.
|
|
cf1226dd
|
2024-01-13T03:14:13
|
|
Update CHANGELOG.md.
|
|
5592352f
|
2024-01-13T00:30:08
|
|
HTML declaration doesn't require whitespace before the closer.
Fixes #216.
|
|
7497ea92
|
2024-01-13T00:17:08
|
|
Allow tabs after setext header underline.
Fixes #215.
|
|
2750d9fa
|
2024-01-13T00:02:12
|
|
Add tags <h2>...<h6> as triggers for HTML block type 6.
Fixes #214.
|
|
e25ea3d1
|
2024-01-11T03:34:24
|
|
Update list of named entities.
|
|
3209f970
|
2024-01-11T01:06:59
|
|
Update CHANGELOG.md.
|
|
e9ff661f
|
2022-01-14T17:34:01
|
|
CHANGELOG.md: Link OSS-Fuzz.
|
|
7d439d49
|
2022-01-14T17:32:27
|
|
CHANGELOG.md: Fix a typo.
|
|
62b60979
|
2022-01-14T10:00:09
|
|
Reset TABLECELLBOUNDARIES with ordinary opener chains.
This is needed because special handling of '|' is now done also if the
wiki-links extension is enabled so the chain is populated even with that
extension.
Fixes #174.
|
|
db9ab417
|
2022-01-12T16:16:00
|
|
Improve wiki-link parsing.
* md_rollback: Restore dummy marks changed to virtual zero-length
closers.
* md_analyze_links: Be more careful in how we rollback contents
of a full wiki link (`[[destination|label]]`). The destination has to
be rollbacked completely (MD_ROLBACK_ALL) while the label only with
MD_ROLLBACK_CROSSING.
Fixes #173.
|
|
b42e7f5c
|
2022-01-10T11:41:25
|
|
md_resolve_links: Avoid link ref. def. lookup if...
if we know that the bracket pair contains nested brackets. That makes
the label invalid anyway, therefore we know that there is no link ref.
def. to be found anyway.
In case of heavily nested bracket pairs, the lookup could lead to
quadratic parsing times.
Fixes #172.
|
|
b3593e7d
|
2022-01-06T16:25:20
|
|
CHANGELOG.md: Update.
|
|
eeb32ecc
|
2022-01-06T16:16:45
|
|
Merge pull request #167 from dtldarek/master
Two buffer overflow fixes.
|
|
b8c31a5b
|
2022-01-06T16:15:12
|
|
CHANGELOG.md: Add a note for the PR #167.
|
|
a8bb4d30
|
2022-01-06T16:01:55
|
|
md_is_table_underline: Remove requirement for minimal length of a cell underline.
Fixes #169.
|
|
7f053306
|
2021-07-15T19:06:06
|
|
CHANGELOG.md: Update.
|
|
d5f8cc29
|
2021-06-27T18:48:05
|
|
Update README.md and CHANGELOG.md.
|
|
c3340b48
|
2021-05-11T12:33:15
|
|
Bump version to 0.4.8.
|
|
da77b928
|
2021-04-15T19:14:43
|
|
CHANGELOG.md: Fix typo.
|
|
0cebd6ff
|
2021-04-14T18:31:18
|
|
CHANGELOG.md: Update.
|
|
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.
|
|
269bbdb3
|
2021-02-11T21:39:44
|
|
Fix output with --full-html command line options.
Fixes #150.
|
|
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.
|
|
aa63198b
|
2020-12-24T15:04:35
|
|
Bump version to 0.4.7.
|
|
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.
|
|
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.
|
|
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.
|
|
db7d1c92
|
2020-08-16T10:56:19
|
|
Bump version to 0.4.5.
|
|
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.
|
|
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.
|
|
3e5d64bf
|
2020-05-29T10:42:38
|
|
Add missing <img /> tag to XHTML support (#116)
|
|
4eaa83b2
|
2020-05-20T17:17:16
|
|
Update CHANGELOG.md.
|
|
25096c7c
|
2020-05-07T23:14:59
|
|
CHANGELOG.md: Update.
|
|
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.
|
|
711fff1c
|
2020-04-28T08:08:18
|
|
CHANGELOG.md: Add a note about the new standalone HTML renderer lib.
|
|
d0e3ed79
|
2020-03-12T22:45:32
|
|
md2html: Skip UTF-8 BOM, if present in the input.
|
|
9b101afd
|
2020-02-17T12:15:21
|
|
Bump version 0.4.3.
|
|
5d7c3597
|
2020-02-16T13:46:16
|
|
md_analyze_emph: Detect correctly opener chain when resolving the range.
Fixes #107.
|
|
437427c8
|
2020-02-13T11:37:01
|
|
CHANGELOG.md: Describe the recent changes for wiki-links.
|
|
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.
|
|
e6661f23
|
2020-01-10T19:27:10
|
|
Implement an underline extension. (#103)
Closes #101.
|
|
82d7d087
|
2020-01-10T15:48:00
|
|
Rework/improve recognition of strike-through spans.
Closes #102.
|
|
561f52e0
|
2020-01-05T18:33:46
|
|
md_is_autolink_email: Fix an off-by-one error.
Fixes #100.
|
|
9b0014e4
|
2020-01-02T14:30:53
|
|
CHANGELOG.md: Minor wording improvement.
|
|
b3739a42
|
2019-12-28T20:21:00
|
|
md_is_html_block_start_condition: Fix the MD4C_USE_UTF16 mode.
The function was calling md_ascii_case_eq() incorrectly with a number of
bytes instead of characters. This could lead to invalid memory accesses
and/or mis-detection of raw HTML blocks in the special MD4C_USE_UTF16
builds on Windows.
|
|
3f5ef0b6
|
2019-12-13T13:41:53
|
|
CHANGELOG.md: Fix a typo.
|
|
64bf660a
|
2019-12-13T13:24:08
|
|
Make the UTF-8 mode the default one.
It was already the default when building with our CMakeLists.txt but it
seems that for projectswich are just embedding our sources into their
build so this change only affects projects embedding direcly our source
files into their project.
|
|
4e2b37e4
|
2019-11-29T12:58:41
|
|
Bump version to 0.4.2.
|
|
46f25f0b
|
2019-11-12T21:48:26
|
|
md_analyze_emph: Call md_resolve_range() with proper chain.
Errorneously, we have called md_resolve_range() with mark chain derived
from the closer mark. In the case that the opener and closer marks
differ in length (and we have split one or the other), we pass in an
incorrect chain, which may lead to strange behavior in subsequent
analysis.
Fixes #98.
|
|
78764217
|
2019-11-04T15:36:51
|
|
Bump version to 0.4.1 and fix CHANGELOG.md.
|
|
a6b37216
|
2019-11-04T15:30:17
|
|
Bump version to 0.4.0.
|
|
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.
|
|
ef85cfc2
|
2019-11-04T15:05:07
|
|
Simplify parsing of tables (#97)
We do so by removing the function md_is_table_row().
md_is_table_row() did some crazy inline parsing to detect whether the
line contains at least one pipe which is not inside a code span or other
high-priority inline element.
This was very complicated under the hood and to was actually breaking
the clean design which separates block analysis parse and inline analysis
of each block contents.
We now just use the table underline for determining the block is table
and its properties like e.g. the column count.
This means a paragraph now cannot interrupt a table. This is a change in
a behavior but likely acceptable one as it actually brings the behavior
closer to behavior of tables in cmark-gfm in this regard.
Last but not least, it seems to prevent adoption of other useful
features, for about that, see the discussion in PR #92.
|
|
e97d0250
|
2019-11-03T13:44:29
|
|
Link label comparision fixes.
* md_link_label_cmp: To match the labels, the loop has to reach ends of
the labels for both of them.
* md_link_label_cmp_load_fold_info: Collapse consequtive whitespace
into a single ' ' for the label comparison purposes.
Fixes #96.
|
|
0354e1ab
|
2019-10-04T22:34:08
|
|
md_is_container_mark: Ordered list mark requires at least one digit.
Fixes #95.
|
|
728f2af4
|
2019-10-03T20:09:33
|
|
md_build_ref_def_hashtable: Do not allocate more memory then needed.
Fixes #94.
|
|
2e965941
|
2019-07-07T10:59:20
|
|
Add/improve docs for the LaTeX math spans.
|
|
410bb419
|
2019-06-19T17:04:48
|
|
Bump version to 0.3.4.
|
|
ce8b5d94
|
2019-05-27T22:16:35
|
|
md_analyze_line: Blockquote with blank line can interrupt a paragraph.
Fixes #83.
|
|
7d1cfbc1
|
2019-05-23T22:50:37
|
|
CHANGELOG.md: Fix some wording.
|
|
346874e0
|
2019-05-20T21:03:47
|
|
Add and fill MD_BLOCK_CODE_DETAIL::fence_char accordingly.
For the case of indented code block, it is left zeroed.
Fixes #81
|
|
f281db0b
|
2019-05-19T11:51:10
|
|
CHNANGELOG.md: Minor typo and wording fixes.
|
|
51386164
|
2019-05-19T11:46:26
|
|
md_link_label_cmp: Fix handling non-trivial folding info.
Fixes #78.
|
|
4f6a9e54
|
2019-05-19T10:46:26
|
|
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.
|
|
267e82df
|
2019-05-16T22:59:45
|
|
md_is_[hex|dec]_entity_contents: Fix maximal entity length.
Spec. version 0.29 limits the decimal character length to at most
7 decimal digits and hexadecimal character length to at most 6
hexadecimal digits.
Fixes #77.
|
|
d7a8ede0
|
2019-05-10T10:36:45
|
|
Bump version to 0.3.3.
|
|
e43f73a3
|
2019-05-07T22:36:29
|
|
CHANGELOG.md: Supplement description of the issue #76.
|
|
83047d3e
|
2019-05-07T22:24:29
|
|
md_analyze_permissive_url_autolink: Improve.
* Fix domain recognition so that it has to have at least two
dot-delimited components.
* Fix handling if parenthesis so that they have to form balanced
pairs; i.e. the first ')' not having a preceding opener ends the
path.
Fixes #76.
|
|
95279131
|
2019-04-30T00:32:36
|
|
When undoing complete block from ctx->block_bytesp[], reset ctx->current_block properly.
Fixes #74.
|
|
d4d10915
|
2019-04-29T19:03:16
|
|
Improve parsing of inline raw HTML.
* Isolate some common code for scanning HTML closer into a new function
so most HTML scanner functions reuse the same code.
* Improve the scanning for the closer so that on failure we remember
the range where no closer is present. So any later scanning attempts
may fail early.
Fixes #73.
|
|
7a6bf33c
|
2019-04-08T19:56:23
|
|
Bump version to 0.3.2
|
|
29dfdd91
|
2019-04-08T19:45:50
|
|
README.md and CHANGELOG.md: Update for spec 0.29.
|
|
b8586987
|
2019-04-03T08:28:27
|
|
md_collect_mark: Add missing 'continue' to '~' branch.
Fixes #69.
|
|
cccfb3d7
|
2019-03-26T16:59:52
|
|
md_is_html_block_start_condition: Fix starting condition 1 when EOF follows.
Fixes #68
|
|
2670043f
|
2019-03-13T07:50:34
|
|
Bump version to 0.3.1
|
|
2dd96ab4
|
2019-03-12T09:56:11
|
|
Fix O(n^2) in handling the "rule of three".
We had to break the list of potential '*' openers into multiple ones so
we do not have to walk it when looking for matching length due to the
"rule of three" for intraword delimiter runs.
Fixes #63.
|
|
b2108652
|
2019-03-11T21:13:15
|
|
md_analyze_line: Fix O(n^2) in thematic break handling.
Fixes #66.
|
|
966b8e39
|
2019-03-11T19:56:46
|
|
md_is_link_title: Stop on ')' lin ()-style title.
Fixes #60.
|
|
089174b5
|
2019-03-11T13:59:53
|
|
CHANGELOG.md: Update.
|
|
7ca80c6f
|
2019-02-13T11:26:19
|
|
CHANGELOG.md: Add note about building as shared lib.
|
|
1ea4b3e2
|
2019-02-11T10:10:26
|
|
README.md + CHANGELOG.md: More updates.
|
|
5a5f10ef
|
2019-02-10T23:08:54
|
|
CHANGELOG.md: Update for version 0.3.0.
|
|
8e01a769
|
2019-02-10T22:58:42
|
|
Implement task lists. (#50)
Fixes #30.
|
|
b9fcd470
|
2019-02-09T11:01:56
|
|
CHANGELOG.md: Update.
|
|
a6cf8ff6
|
2019-02-06T04:36:01
|
|
CHANGELOG.md: Small update.
|
|
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.
|
|
162b5fe3
|
2019-02-05T10:05:49
|
|
Add CHANGELOG.md.
|