summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-23Added spec with link break inside pointy braces (no link).John MacFarlane
Closes #295.
2015-01-23Set version in CMakeLists to 0.16.0.John MacFarlane
See #296.
2015-01-23Merge pull request #296 from nwellnhof/version_infoJohn MacFarlane
Improve version information
2015-01-23Add version information to shared libraryNick Wellnhofer
2015-01-23Let cmake update versionNick Wellnhofer
Add a new template cmark_version.h.in to generate cmark_version.h containing version information.
2015-01-23Improve version informationNick Wellnhofer
Add version number and string as macros and symbols. Version numbers can be easily compared, for example in the C preprocessor: #include <cmark.h> #if CMARK_VERSION < 0x020200 #error Requires libcmark 2.2.0 or higher #endif Storing the version in a global variable allows to check the library version at runtime. For example: if (CMARK_VERSION != cmark_version) { warn("Compiled against libcmark %s, but using %s", CMARK_VERSION_STRING, cmark_version_string); } The version should be updated whenever the public API is changed.
2015-01-22Fixed Xcode install example.John MacFarlane
Closes #294.
2015-01-21Avoid free(0) for link titles and URLs.John MacFarlane
2015-01-21Removed unnecessary strbuf_free's.John MacFarlane
2015-01-21Avoid trying to free string_contents for inlines.John MacFarlane
This avoids an unnecessary free(0) -- and perhaps free(???). However, ltrace reveals that there is still a free(0) happening, with some other source.
2015-01-21Adjust lastLineLength before returning.John MacFarlane
2015-01-21Renamed first_nonspace -> next_nonspace.John MacFarlane
2015-01-21Added currentLine property to Parser.John MacFarlane
2015-01-21Moved continuation checks & finalizers into blocks property.John MacFarlane
This is a first step towards keeping the code for each kind of block in a central place, rather than spread all over the code base. This is preparatory for a more modular structure, where each type of block has a record describing how it is parsed and finalized. Eventually this will also contain functions for checking for a block start, and metadata that determines how line data should be handled. There is a small performance penalty (about 3%?) but it seems worth it.
2015-01-21Removed unnecessary check.John MacFarlane
2015-01-21Revert "Reverted addition of offset property to DocParser."John MacFarlane
This reverts commit 16b275eb7b83ccbea6ef18b1c62efa655a1d3759.
2015-01-21Propagate lastLineBlank up through parents.John MacFarlane
Previously we just kept it set on the bottom child. But this will give a quicker determination of lastLineBlank.
2015-01-21Removed unnecessary check.John MacFarlane
2015-01-21Adjust lastLineLength before returning after close fence.John MacFarlane
2015-01-21Merge pull request #293 from robinst/use-void-returnJohn MacFarlane
Remove unnecessary return of value
2015-01-21Merge pull request #292 from robinst/top-property-accessJohn MacFarlane
Remove read of "top" property (always undefined)
2015-01-21Merge pull request #291 from robinst/addChild-call-argumentsJohn MacFarlane
Fix incorrect call to addChild with 3 arguments
2015-01-21Merge pull request #290 from robinst/remove-unused-assignment-lastLineBlankJohn MacFarlane
Dead code: Remove line assigning to Parser's _lastLineBlank property
2015-01-21Remove unnecessary return of valueRobin Stocker
In other cases, there is no return, and no caller checks for a return value.
2015-01-21Remove read of "top" property (always undefined)Robin Stocker
2015-01-21Fix incorrect call to addChild with 3 argumentsRobin Stocker
Also, the assignment is unnecessary at this point.
2015-01-21Dead code: Remove line assigning to Parser's _lastLineBlank propertyRobin Stocker
It looks like the line is unused (the property is on Node objects).
2015-01-20Merge pull request #289 from nwellnhof/user_dataJohn MacFarlane
Add field for user data to node
2015-01-20Accessor for iterator's root nodeNick Wellnhofer
2015-01-20Add user data field for nodesNick Wellnhofer
2015-01-20Fixed escaping error in CDATA regex.John MacFarlane
Caught by sjs! This also improves performance measurably.
2015-01-19Man writer: ensure we properly escape multiline strings.John MacFarlane
2015-01-18Bigger TODO comment in js/README.md.John MacFarlane
2015-01-18html.js - explicitly specify second parameter of escapeXml.John MacFarlane
2015-01-18Readjust parser->current after closing fenced block.John MacFarlane
Added assertion to raise an error if finalize is called on a closed block (as was happening undetected because of the fallback behavior).
2015-01-18Changed rule for `_` emphasis and strong emphasis.John MacFarlane
To prevent intra-word emphasis, we used to check to see if the delimiter was followed/preceded by an ASCII alphanumeric. We now do something more elegant: whereas an opening `*` must be left-flanking, an opening `_` must be left-flanking *and not right-flanking*. And so on for the other cases. All the original tests passed except some tests with Russian text with internal `_`, which formerly created emphasis but no longer do with the new rule. These tests have been adjusted. A few new test cases have been added to illustrate the rule. The C and JS implementations have both been updated.
2015-01-17Renamed DocParser -> Parser.John MacFarlane
Note: library users should update their code or it will break.
2015-01-17Fixed typo.John MacFarlane
2015-01-17Added new fine-grained JS benchmarks.John MacFarlane
And a script to run them.
2015-01-17Reverted addition of offset property to DocParser.John MacFarlane
Also reverted subtraction of offset param from addLine.
2015-01-17Moved place where we increment line number.John MacFarlane
2015-01-17Removed a check in addLine.John MacFarlane
2015-01-17eslint: turned off no-constant-condition warning.John MacFarlane
2015-01-17addLine: use this.offset; removed offset parameter.John MacFarlane
2015-01-17Added offset property to DocParser.John MacFarlane
2015-01-17Removed some unneeded tests (code clarity).John MacFarlane
2015-01-17Small code clarification.John MacFarlane
2015-01-17Put check for fence close with the other checks for end-of-block.John MacFarlane
This is a more logical arrangement and follows recent changes to the JS implementation.
2015-01-17Moved check for closing fence to close-block-check section.John MacFarlane
This is a more logical arrangement.
2015-01-17Minor code simplification.John MacFarlane