|
6bc0b861
|
2017-07-18T18:50:07
|
|
Merge branch 'hash'
|
|
cfbce759
|
2017-07-18T18:01:02
|
|
Rework ref. def. dictionary.
It now uses FNV1a and we now sort/bsearch only contents of single bucket.
Additionally we fix #20 by disabling the invalid ref. definitions during
hashtable build.
|
|
ff524e91
|
2017-07-17T08:50:04
|
|
Refactor: Isolate dictionary of reference defintions.
|
|
07c5dba9
|
2017-07-18T18:02:00
|
|
Remove unused structure member.
|
|
4e831dc1
|
2017-07-15T18:40:38
|
|
Add 2017 into copyright notes.
|
|
f2821cbd
|
2017-07-14T17:10:45
|
|
md_analyze_permissive_email_autolink: Make it compatible with CMark-gfm.
|
|
a83db2b7
|
2017-07-14T16:49:42
|
|
README.md: Minor update.
|
|
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.
|
|
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).
|
|
8818ff14
|
2017-07-13T19:18:03
|
|
Get rid of unneeded MD_LINK_REF_DEF::index.
|
|
302cd5f8
|
2017-07-13T18:54:34
|
|
Improve lookup of link reference definitions.
At the cost of remembering all reference definitions (even when having
same label), we improved the lookup from O(n) to O(log(n)).
This also fixes potential DOS attack by providing input with thousandslink
reference definitions and references to them.
|
|
82c0eb53
|
2017-07-13T16:23:45
|
|
entity_lookup: Make it return UTF-32 codepoints.
And adapted callers accordingly.
Fixes #12.
|
|
25a156ee
|
2017-07-12T23:30:14
|
|
Implement strikethrough extension.
|
|
d84dcec8
|
2017-07-12T22:53:54
|
|
md4c/md4c.h: MD_DIALECT_GITHUB does not imply MD_FLAG_PERMISSIVEATXHEADERS.
Since migration to Cmark-gfm, github.com does not accept them anymore.
|
|
aa51e86f
|
2017-07-12T22:52:58
|
|
md2html/md2html.c: Add options for Markdown dialect.
Added support for options --commonmark and --github.
|
|
71d74e9f
|
2017-05-04T16:33:56
|
|
Merge branch 'master' of https://github.com/mity/md4c
|
|
921602b3
|
2017-05-04T16:21:34
|
|
md_is_link_reference_definition: Do not store multiple link definitions with same label.
|
|
19980907
|
2017-03-19T22:19:28
|
|
use typedef structs that are compatible with both c and c++
|
|
aeaff18e
|
2017-01-04T16:41:46
|
|
Bump version to 0.2.2
|
|
ea83b7f6
|
2017-01-04T21:57:49
|
|
md_analyze_simple_pairing_mark: Fix gcc warning.
|
|
8999e184
|
2017-01-04T14:40:44
|
|
Fix "rule of three" for emphasis resolution (issue #14).
|
|
c63909df
|
2017-01-04T15:04:09
|
|
When splitting emphasis opener mark, we have to retain 'dummy' marks available for more splitting in the future (issue #15).
|
|
3c28a8b8
|
2017-01-04T14:29:50
|
|
md_rollback: Do not play with the mark flag MD_MARK_LEAF.
And remove the flag altogether.
|
|
3688e0fc
|
2017-01-01T23:52:27
|
|
md_link_label_eq: Remove harmful anti-optimization.
|
|
ca5da63d
|
2017-01-01T22:02:33
|
|
md_collect_marks: Optimize in case of 8-bit encodings by eliminating some branches in the fast path.
|
|
443ee515
|
2017-01-01T21:39:48
|
|
md_collect_marks: Optimize the fast path by making its loops tighter.
|
|
7cb7f65c
|
2017-01-01T18:20:25
|
|
md_collect_marks: Optimize fast path by some manual loop unrolling.
|
|
2726b7cb
|
2017-01-01T17:40:02
|
|
Minor code cleanup.
|
|
9c644b40
|
2017-01-01T17:26:36
|
|
md_analyze_line: Optimize scanning for end of line.
|
|
f1a63f1c
|
2017-01-01T16:18:42
|
|
md_process_table_row: Fix possible errorneous free() on an error path.
|
|
1a8ce93d
|
2016-12-28T00:02:23
|
|
Add macros MD_DIALECT_COMMONMARK and MD_DIALECT_GITHUB.
|
|
52712384
|
2016-12-27T22:47:03
|
|
When parsing tables, pipes inside a link/image/code span cannot make cell boundary (issue #7).
|
|
72173b3f
|
2016-12-21T19:17:07
|
|
Propagate to renderer more info about lists (issue #13).
Make MD_BLOCK_OL_DETAIL and MD_BLOCK_UL_DETAIL (new structure) expose more
info about the lists.
In particular flag whether the list is tight or loose, and info about the
fundamental chartacter making the list item marks.
|
|
a9582fa4
|
2016-12-16T11:23:34
|
|
.travis.yml: Add md2html to coveralls upload.
|
|
ba686ec3
|
2016-12-16T10:16:17
|
|
render_html.c: Fix build with MSVC.
|
|
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.)
|
|
c9ef8ccb
|
2016-12-16T09:59:03
|
|
render_html.c: Unify use of char versus MD_CHAR.
|
|
c850843c
|
2016-12-16T09:47:06
|
|
md2html: Isolate HTML renderer into render_html.c (issue #8).
|
|
232ceeac
|
2016-12-16T00:11:23
|
|
md_analyze_line: A list item can begin with at most one blank line (issue #6).
Hacky. I very dislike it, but it brings us full CommonMark 0.27
compliance.
Hallelujah.
|
|
3ec2a195
|
2016-12-15T23:57:58
|
|
md_analyze_backtick: Ensire that code span opener and closer do not overlap.
|
|
f9b4cb8f
|
2016-12-15T16:47:41
|
|
md_process_inlines: Fix when an expanded mark shadows some nested marks (issue #11).
|
|
c235a02e
|
2016-12-15T13:18:48
|
|
test/coverage.txt: Add some tests for higher code coverage.
|
|
a38c79db
|
2016-12-15T11:29:31
|
|
md_build_attr_append_substr: Fix leak on an error path (CID 1389262).
|
|
a725fee3
|
2016-12-14T16:51:24
|
|
md_enter_child_containers: Fix crash (issue #10).
Calling md_push_container_bytes() may result in ending a current block
which may result in removing some contents from ctx->block_bytes when
removing some lines with link reference definitions.
This in effect means we have to end the block explicitly before storing
the offset into the ctx->block_bytes.
|
|
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.
|
|
ba29d007
|
2016-12-12T23:31:59
|
|
md_is_link_reference_definition: Fix handling of multiline label (issue #9).
|
|
a4d4f463
|
2016-12-12T18:04:14
|
|
README.md: Improve wording.
|
|
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.
|
|
b7f37ae6
|
2016-12-07T23:24:17
|
|
README.md: Minor update.
|
|
6d35c73c
|
2016-12-07T18:29:02
|
|
Minor cleanup.
|
|
f0175cfc
|
2016-12-07T15:08:41
|
|
md_do_normalize_string: Fix checking whether we are done.
|
|
8f754776
|
2016-12-07T15:00:51
|
|
md_setup_fenced_code_detail: Fix size of temp. buffer.
|
|
4405d797
|
2016-12-07T14:29:49
|
|
md_analyze_line: Fix prioritization of "brother" list item detection.
|
|
45a10271
|
2016-12-07T13:43:54
|
|
md_do_normalize_string: Fix handling of escaped backslash ("\\").
|
|
29284842
|
2016-12-07T13:22:16
|
|
Handle escapes in code fence info string.
|
|
75cee13e
|
2016-12-07T13:04:29
|
|
Handle escape sequences in link titles.
|
|
29524387
|
2016-12-05T23:53:30
|
|
README.md: Minor update.
|
|
864da293
|
2016-12-05T21:25:29
|
|
Fix typos.
|
|
6c90b37f
|
2016-12-05T21:17:45
|
|
More fixes and enhancements to Windows Unicode support (issue #3).
* Rename MD4C_USE_WIN_UNICODE to MD4C_USE_UTF16.
* Update and improve related documentation in README.md.
|
|
f9e58913
|
2016-12-05T20:54:37
|
|
Rename MD4C_USE_UNICODE to MD4C_USE_UTF8.
|
|
7d20152c
|
2016-12-05T13:45:57
|
|
Fix UTF-16 sorrogate decoding (with -DMD4C_USE_UNICODE).
See https://github.com/mity/md4c/pull/1#issuecomment-264842360
|
|
0d10f6db
|
2016-12-05T12:34:29
|
|
md2html.c: No need for <stdint.h>
|
|
bc52610e
|
2016-12-05T12:21:07
|
|
Fix signed/unsigned comparisons.
This removes a lot of MSVC warnings.
|
|
e6dc14e9
|
2016-12-05T11:24:29
|
|
Fix md4c.c compilation with -DMD4C_USE_WIN_UNICODE.
|
|
23312d6d
|
2016-12-05T11:13:43
|
|
md_is_html_tag: Fix parsing unquoted attribute value (issue #2).
|
|
c5fa9a70
|
2016-12-01T22:16:50
|
|
md_analyze_line: Closing code fence cannot have list loosening effect.
|
|
17e6b940
|
2016-12-04T20:53:47
|
|
md_resolve_links: Minor cleanup.
|
|
035dea49
|
2016-12-04T20:48:06
|
|
Fix crash caused by bad management of opener chains.
1. We need to reset (potentially used) chains after each mark analysis
phase. This ensures that md_rollback() does not try to play with
chains used in previous phases.
2. md_rollback() must never play with PTR_CHAIN.
|
|
578dea5b
|
2016-12-04T18:41:41
|
|
md_resolve_links: Remove possible invalid initialization.
|
|
bb23f791
|
2016-12-04T18:09:33
|
|
md_build_img_alt: Fix crash when dealing with some mark types.
For some mark types, it is possible that subsequent mark has lower 'beg'
then 'end' of the previous one.
This typically happens when an opener mark is expanded to cover whole
range to the closer.
|
|
b40d5950
|
2016-12-04T17:01:00
|
|
Fix file permissions of python scripts.
|
|
4e416f1b
|
2016-12-01T22:09:38
|
|
md_analyze_line: Fix blank lines inside a fenced code block when nested in a container.
|
|
12b16001
|
2016-12-01T21:48:42
|
|
md_analyze_line: Blank line inside a blockquote cannot have a list loosening effect.
|
|
3f95f065
|
2016-12-01T21:40:50
|
|
md_process_all_blocks: Fix decrementing of ctx->n_containers
when leaving blockquote.
|
|
b0ac9ef4
|
2016-12-01T18:18:10
|
|
md_analyze_line: Ordered list can interrupt paragraph only if start index is 1.
|
|
c7083d88
|
2016-12-01T18:07:35
|
|
md_process_all_blocks: Block quote cannot be "tight".
Block quote cannot "inherit" tightness of a (tight) enclosing list item.
|
|
203ed892
|
2016-12-01T17:41:51
|
|
md_analyze_line: Update MD_CONTAINER when switching to the brother list item.
|
|
52dea362
|
2016-12-01T16:52:24
|
|
Handle empty list items.
|
|
93701fdb
|
2016-12-01T11:51:57
|
|
md_process_inlines: Handle line breaks inside (inline) raw HTML.
|
|
25f0f137
|
2016-12-01T11:32:04
|
|
md_analyze_line: Use ctx->code_indent_offset rather then encoded 4.
|
|
e7908d56
|
2016-12-01T11:29:42
|
|
md_analyze_line: Handle better indentation after list item mark.
|
|
325f373e
|
2016-11-30T23:41:34
|
|
md4c.h: Update docs comments.
|
|
13ce09b7
|
2016-11-27T03:03:16
|
|
README.md: Update.
|
|
b43ef8e6
|
2016-11-27T00:50:24
|
|
md_link_label_eq: Treat new line as an unicode whitespace.
It fixes this:
[Foo
bar]: /url
[Baz][Foo bar]
|
|
e61a8158
|
2016-11-27T00:39:54
|
|
Fix some by-one errors when handling escapes.
|
|
dee8142c
|
2016-11-27T00:37:22
|
|
Handle escapes in link destinations.
|
|
55afb5ba
|
2016-11-27T00:09:50
|
|
Fix typo.
|
|
ebaee39c
|
2016-11-26T23:37:05
|
|
Fix nesting of links and images.
|
|
d82bf9e0
|
2016-11-26T23:13:35
|
|
md_is_container_mark: If indented as an indented code block, we cannot be a container start.
This fixes this:
> foo
- bar
|
|
4bb7cf8a
|
2016-11-26T23:02:44
|
|
Fix handling a backslash inside an autolink.
This fixes this:
<http://example.com/\[\>
|
|
159c2ee3
|
2016-11-26T22:48:19
|
|
Fix counting line indentation if '\t' is present.
|
|
f1bd8b37
|
2016-11-26T21:57:24
|
|
Fix handling of multi-backtick codespan mark if a backslash precedes.
So in this
\``code span`
the codespan is now correctly recognized.
|
|
2a70b3ef
|
2016-11-26T20:32:33
|
|
Limit length of code span marks to lower then 256 characters.
This protects against a pathologic case generated by
$ python -c 'print( "".join(map(lambda x: ("e" + "`" * x), range(1,10000))))'
|
|
4c96ac26
|
2016-11-26T20:31:35
|
|
Refactorize memory management of MD_LINK_REF_DEF structures.
|
|
aacbbfae
|
2016-11-26T14:08:27
|
|
Minor clean-up.
|
|
96a92808
|
2016-11-26T14:00:40
|
|
CMakeLists.txt: By default, do Release build.
|
|
09c7fd7f
|
2016-11-25T15:17:01
|
|
md_text_with_null_replacement: Fix endless loop on a NULL character.
|
|
6fb7439c
|
2016-11-25T00:02:46
|
|
md_remove_line_breaks: Minor fixes.
|
|
3eba7f42
|
2016-11-24T23:50:06
|
|
md_analyze_line: End raw HTML block prematurely if enclosing container ends.
|
|
1d8a4e72
|
2016-11-24T16:09:44
|
|
README.md: Minor update.
|