summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-23Merge pull request #294 from JerwuQu/cmark-issue-291-jerwuquJohn MacFarlane
Add built cmark.exe as an AppVeyor artifact
2019-04-23Merge pull request #295 from nwellnhof/link-exe-with-libJohn MacFarlane
Link executable with static or shared library
2019-04-23Link executable with static or shared libraryNick Wellnhofer
If CMARK_STATIC is on (default), link the executable with the static library. This produces exactly the same result as compiling the library sources again and linking with the object files. If CMARK_STATIC is off, link the executable with the shared library. This wasn't supported before and should be the preferred way to package cmark on Linux distros. Building only a shared library and a statically linked executable isn't supported anymore but this doesn't seem useful.
2019-04-23Add built cmark.exe as an AppVeyor artifactMarcus Ramse
2019-04-08Revise changelogJohn MacFarlane
2019-04-07Updaet changelog.John MacFarlane
2019-04-07For afl target, don't build tests.John MacFarlane
2019-04-07Update spec.John MacFarlane
2019-04-06Bump version to 0.29.0.John MacFarlane
2019-04-06Update spec.John MacFarlane
2019-04-06Update spec.John MacFarlane
2019-04-06Update spec.John MacFarlane
2019-04-06Resolve link references before creating setext header.John MacFarlane
A setext header line after a link reference should not create a header, according to the spec. See commonmark/commonmark-spec#395.
2019-04-06commonmark renderer: improve escaping.John MacFarlane
URL-escape special characters when escape mode is URL, and not otherwise. Entity-escape control characters (< 0x20) in non-literal escape modes.
2019-04-06render: only emit actual newline when escape mode is LITERAL.John MacFarlane
For markdown content, e.g., in other contexts we want some kind of escaping, not a literal newline.
2019-04-06Update spec.John MacFarlane
2019-04-04Update code span normalization...John MacFarlane
to conform with spec change.
2019-04-04Update spec.John MacFarlane
2019-04-03Allow empty `<>` link destination in reference link.John MacFarlane
2019-04-03Update specJohn MacFarlane
2019-03-28Remove leftover includes of memory.h.John MacFarlane
Closes #290.
2019-03-26Merge pull request #269 from foonathan/masterJohn MacFarlane
Fix cmake warning about CMP0048, again
2019-03-26Fix #289.John MacFarlane
A link destination can't start with `<` unless it is an angle-bracket link that also ends with `>`. (If your URL really starts with `<`, URL-escape it.)
2019-03-26Update spec.txt.John MacFarlane
2019-03-26Update regression tests in light of recent spec changes...John MacFarlane
affecting link destinations.
2019-03-25Add regression test for #517.John MacFarlane
2019-03-25Update test/spec.txtJohn MacFarlane
2019-03-23Update spec; allow internal delimiter runs to match if...John MacFarlane
both have lengths that are multiples of 3. See commonmark/commonmark#528.
2019-03-22Include references.h in parser.hJohn MacFarlane
Closes #287.
2019-03-19Update spec. Fix `[link](<foo\>)`.John MacFarlane
2019-03-19Define CMARK_OPT_SAFE for API compatibility.John MacFarlane
It doesn't do anything; this is documented.
2019-03-18Remove deprecated call to add_compiler_export_flags()Jonathan Müller
It is deprecated in CMake 3.0, the replacement is to set the CXX_VISIBILITY_PRESET (or in our case C_VISIBILITY_PRESET) and VISIBILITY_INLINES_HIDDEN properties of the target. We're already setting them by setting the CMake variables anyway, so the call can be removed.
2019-03-18Bump CMake to version 3Jonathan Müller
2019-03-17Make rendering safe by default.John MacFarlane
Removes CMARK_OPT_SAFE from options. Adds CMARK_OPT_UNSAFE, with the opposite meaning. The new default behavior is to suppress raw HTML and potentially dangerous links. The CMARK_OPT_UNSAFE option has to be set explicitly to prevent this. -------------------------------------------------------- NOTE: This change will require modifications in bindings for cmark and in most libraries and programs that use cmark. -------------------------------------------------------- Closes #239, #273. Borrows heavily from @kivikakk's patch in github/cmark-gfm#123.
2019-03-17Merge pull request #254 from github/empty-inputJohn MacFarlane
Check for empty buffer when rendering
2019-03-17Avoid gcc warning for uninitialized variable.John MacFarlane
2019-03-17Use hand-rolled scanner for thematic break.John MacFarlane
Keep track of the last position where a thematic break failed to match on a line, to avoid rescanning unnecessarily. See commonmark/cmark#284.
2019-03-17Do cheaper test first.John MacFarlane
2019-03-17Rename ends_with_blank_line with S_ prefix.John MacFarlane
As with other static functions.
2019-03-17Add CMARK_NODE__LAST_LINE_CHECKED flag.John MacFarlane
Use this to avoid unnecessary recursion in ends_with_blank_line. Closes #284.
2019-03-17In ends_with_blank_line, call S_set_last_line_blank...John MacFarlane
to avoid unnecessary repetition. Once we settle whether a list item ends in a blank line, we don't need to revisit this in considering parent list items. See commonmark/cmark#284.
2019-03-17Add pathological test for #285.John MacFarlane
2019-03-17Add regression test for commonmark#526.John MacFarlane
2019-03-17Disallow unescaped ( in parenthesized link title.John MacFarlane
In accord with spec change.
2019-03-17Update test/spec.txtJohn MacFarlane
2018-12-17Merge pull request #277 from elibarzilay/masterJohn MacFarlane
Update the Racket wrapper
2018-11-23Merge pull request #278 from github/upstream-pledgeJohn MacFarlane
Use pledge(2) on OpenBSD
2018-11-21check for OpenBSD 5.9+Ashe Connor
2018-11-20Use pledge(2) on OpenBSDAshe Connor
2018-11-14Update the Racket wrapperEli Barzilay