Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-24 | Removed JS implementation, which is moving to its own repo: | John MacFarlane | |
<https://github.com/jgm/commonmark.js> | |||
2015-01-23 | Removed unused variable. | John MacFarlane | |
2015-01-23 | Tweaked uglifyjs options. | John MacFarlane | |
2015-01-23 | Added target for minified js/dist/commonmark.min.js. | John MacFarlane | |
2015-01-23 | Put generated commonmark.js in js/dist/ rather than js/. | John MacFarlane | |
2015-01-23 | Added spec with link break inside pointy braces (no link). | John MacFarlane | |
Closes #295. | |||
2015-01-23 | Set version in CMakeLists to 0.16.0. | John MacFarlane | |
See #296. | |||
2015-01-23 | Merge pull request #296 from nwellnhof/version_info | John MacFarlane | |
Improve version information | |||
2015-01-23 | Add version information to shared library | Nick Wellnhofer | |
2015-01-23 | Let cmake update version | Nick Wellnhofer | |
Add a new template cmark_version.h.in to generate cmark_version.h containing version information. | |||
2015-01-23 | Improve version information | Nick 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-22 | Fixed Xcode install example. | John MacFarlane | |
Closes #294. | |||
2015-01-21 | Avoid free(0) for link titles and URLs. | John MacFarlane | |
2015-01-21 | Removed unnecessary strbuf_free's. | John MacFarlane | |
2015-01-21 | Avoid 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-21 | Adjust lastLineLength before returning. | John MacFarlane | |
2015-01-21 | Renamed first_nonspace -> next_nonspace. | John MacFarlane | |
2015-01-21 | Added currentLine property to Parser. | John MacFarlane | |
2015-01-21 | Moved 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-21 | Removed unnecessary check. | John MacFarlane | |
2015-01-21 | Revert "Reverted addition of offset property to DocParser." | John MacFarlane | |
This reverts commit 16b275eb7b83ccbea6ef18b1c62efa655a1d3759. | |||
2015-01-21 | Propagate 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-21 | Removed unnecessary check. | John MacFarlane | |
2015-01-21 | Adjust lastLineLength before returning after close fence. | John MacFarlane | |
2015-01-21 | Merge pull request #293 from robinst/use-void-return | John MacFarlane | |
Remove unnecessary return of value | |||
2015-01-21 | Merge pull request #292 from robinst/top-property-access | John MacFarlane | |
Remove read of "top" property (always undefined) | |||
2015-01-21 | Merge pull request #291 from robinst/addChild-call-arguments | John MacFarlane | |
Fix incorrect call to addChild with 3 arguments | |||
2015-01-21 | Merge pull request #290 from robinst/remove-unused-assignment-lastLineBlank | John MacFarlane | |
Dead code: Remove line assigning to Parser's _lastLineBlank property | |||
2015-01-21 | Remove unnecessary return of value | Robin Stocker | |
In other cases, there is no return, and no caller checks for a return value. | |||
2015-01-21 | Remove read of "top" property (always undefined) | Robin Stocker | |
2015-01-21 | Fix incorrect call to addChild with 3 arguments | Robin Stocker | |
Also, the assignment is unnecessary at this point. | |||
2015-01-21 | Dead code: Remove line assigning to Parser's _lastLineBlank property | Robin Stocker | |
It looks like the line is unused (the property is on Node objects). | |||
2015-01-20 | Merge pull request #289 from nwellnhof/user_data | John MacFarlane | |
Add field for user data to node | |||
2015-01-20 | Accessor for iterator's root node | Nick Wellnhofer | |
2015-01-20 | Add user data field for nodes | Nick Wellnhofer | |
2015-01-20 | Fixed escaping error in CDATA regex. | John MacFarlane | |
Caught by sjs! This also improves performance measurably. | |||
2015-01-19 | Man writer: ensure we properly escape multiline strings. | John MacFarlane | |
2015-01-18 | Bigger TODO comment in js/README.md. | John MacFarlane | |
2015-01-18 | html.js - explicitly specify second parameter of escapeXml. | John MacFarlane | |
2015-01-18 | Readjust 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-18 | Changed 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-17 | Renamed DocParser -> Parser. | John MacFarlane | |
Note: library users should update their code or it will break. | |||
2015-01-17 | Fixed typo. | John MacFarlane | |
2015-01-17 | Added new fine-grained JS benchmarks. | John MacFarlane | |
And a script to run them. | |||
2015-01-17 | Reverted addition of offset property to DocParser. | John MacFarlane | |
Also reverted subtraction of offset param from addLine. | |||
2015-01-17 | Moved place where we increment line number. | John MacFarlane | |
2015-01-17 | Removed a check in addLine. | John MacFarlane | |
2015-01-17 | eslint: turned off no-constant-condition warning. | John MacFarlane | |
2015-01-17 | addLine: use this.offset; removed offset parameter. | John MacFarlane | |
2015-01-17 | Added offset property to DocParser. | John MacFarlane | |