summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-24Makefile: replaced PROG with CMARK and PROG.John MacFarlane
PROG is overridable, CMARK is not. Slight adjustment to #297.
2015-01-24Merge pull request #297 from nwellnhof/makefile_fixesJohn MacFarlane
Makefile fixes
2015-01-24Removed JS implementation, which is moving to its own repo:John MacFarlane
<https://github.com/jgm/commonmark.js>
2015-01-24Prohibit overriding of some Makefile varsNick Wellnhofer
SRCDIR, DATADIR, and PROG should not be overridable.
2015-01-24Remove dependencies from $(BUILDDIR) targetNick Wellnhofer
There's no need to reconfigure if html_unescape.h or case_fold_switch.inc were changed.
2015-01-24Make "test" target depend on "cmake_build"Nick Wellnhofer
cmake doesn't (re)build the project if the tests are run. This change allows to run "make test" without having to run "make" before, for example after modifying source files or from a clean tree.
2015-01-24Pass INSTALL_PREFIX to cmakeNick Wellnhofer
This allows to install to a location other than /usr/local without invoking cmake manually.
2015-01-24Move message from "all" to "cmake_build" targetNick Wellnhofer
2015-01-24Rework Makefile targetsNick Wellnhofer
Since $(BUILDDIR) depended on the phony target "check", it was always considered out-of-date. So it was always rebuilt resulting in running the "cmake" command again even if it was already run. Add a new phony target "cmake_build" that always triggers the cmake build and make $(PROG) depend on it. Running "make" a second time now doesn't run cmake again.
2015-01-23Removed unused variable.John MacFarlane
2015-01-23Tweaked uglifyjs options.John MacFarlane
2015-01-23Added target for minified js/dist/commonmark.min.js.John MacFarlane
2015-01-23Put generated commonmark.js in js/dist/ rather than js/.John MacFarlane
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.