|
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.
|
|
e33bb733
|
2020-02-23T02:47:31
|
|
md2html: Migrate to cmdline.[hc] from C-Reusables.
This fixes many warnings from gcc 9.2.
|
|
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.
|
|
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.
|
|
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.
|
|
64210986
|
2019-12-16T00:25:13
|
|
README.md: Add section about SW using MD4C.
|
|
b06f912a
|
2019-12-14T14:06:46
|
|
README.md: Add missing info about wikilinks extension.
|
|
2eeff387
|
2019-12-13T20:45:20
|
|
README.md: Yet another minor update.
|
|
92175c48
|
2019-12-13T18:25:45
|
|
README.md: Few more wording improvements.
|
|
b9fc0221
|
2019-12-13T13:49:48
|
|
README.md: Minor wording changes and typo fixes.
|
|
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.
|
|
e3b14bbe
|
2019-12-11T18:27:04
|
|
render_html.c: Minor clean-up.
|
|
6666db6d
|
2019-12-11T17:40:04
|
|
render_html.c: Unify HTML escaping and URL escaping.
|
|
753d916f
|
2019-12-11T14:55:10
|
|
README.md: Few more minor wording improvements.
|
|
6835cdd5
|
2019-12-11T14:30:59
|
|
README.md: A grammer fix.
|
|
e0bbf449
|
2019-12-11T14:27:24
|
|
README.md: Update the README.
* Improve some wording.
* Add Documentation secion.
* Add FAQ section.
* Add link to markdown-wasm.
|
|
43bfa54d
|
2019-12-10T12:11:40
|
|
md2html.c: Fix printing input file name when output cannot be opened. (#99)
|
|
db8e9fac
|
2019-12-06T04:13:23
|
|
README.md: Add logos to the badges.
|
|
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.
|
|
993c7b9b
|
2019-11-03T23:32:46
|
|
Render LaTeX math into HTML as a tag <x-equation>...
... instead of <equation>. This is to highlight that it is not a
standard HTML tag.
|
|
13a5a4b4
|
2019-11-03T22:21:18
|
|
README.md: Update link to commonmark-d.
|
|
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.
|
|
64a63d53
|
2019-10-03T20:21:00
|
|
README.md: Add link to commonmark-d as a port of MD4C for D language.
|
|
728f2af4
|
2019-10-03T20:09:33
|
|
md_build_ref_def_hashtable: Do not allocate more memory then needed.
Fixes #94.
|
|
ae5ca894
|
2019-07-12T08:44:53
|
|
md2html/CMakeLists.txt: Use INSTALL(TARGETS) instead of INSTALL(PROGRAMS).
Fixes #88.
|
|
97606369
|
2019-07-07T11:19:21
|
|
Fix the last test case in latex-math.txt.
|
|
9e8b3548
|
2019-07-07T11:16:23
|
|
Simplify some assertions.
|
|
099ce69b
|
2019-07-07T11:15:44
|
|
Add missing file into git.
|
|
2e965941
|
2019-07-07T10:59:20
|
|
Add/improve docs for the LaTeX math spans.
|
|
8bac86aa
|
2019-07-07T09:46:10
|
|
Added support for LaTeX math (#87)
Addresses #86.
|
|
f0de1990
|
2019-06-24T21:56:50
|
|
Add man page for md2html program (#85)
Fixes #56
|
|
410bb419
|
2019-06-19T17:04:48
|
|
Bump version to 0.3.4.
|
|
b2e60066
|
2019-05-30T15:59:22
|
|
README.md: Shorten an URL to improve line wrapping.
|
|
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.
|
|
c4e6ddc3
|
2019-05-20T21:27:20
|
|
md2html/render_html.h: Add extern "C" when included in C++.
Seems some people desire to use the HTML renderer in C++ projects, so
lets make this as the 1st step in making it easy :-)
|
|
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
|