Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-17 | Fixed linter errors. | John MacFarlane | |
2015-01-15 | Provide getters and setters for public properties of Node. | John MacFarlane | |
Everything else gets a name starting with an underscore and will be considered private. This will allow us to keep the API stable while changing the underlying data structure. And it will avoid exposing properties that have only an instrumental value in parsing. | |||
2015-01-15 | Rename sourcepos -> _sourcepos, added sourcepos() accessor. | John MacFarlane | |
2015-01-15 | Removed Node.toObject(). | John MacFarlane | |
2015-01-15 | Renamed .t to ._type to mark it as "hidden." | John MacFarlane | |
2015-01-15 | Removed setType(), replaced getType() with type(). | John MacFarlane | |
2015-01-15 | Added getType(), setType() to node.js. | John MacFarlane | |
Use these instead of direct property access. This is the first step in a general move towards an API like the one libcmark has. This will allow us to have a stable API that is independent of details of the AST. | |||
2015-01-15 | Removed artificial distinction btw FencedCode, IndentedCode | John MacFarlane | |
in blocks.js. | |||
2015-01-13 | Removed an implicit cast in node.js 'next'. | John MacFarlane | |
2015-01-13 | Initialize fields in objects to null rather than undefined. | John MacFarlane | |
Big speed boost. | |||
2015-01-12 | Use new with Document and NodeWalker constructors. | John MacFarlane | |
2015-01-11 | js: 'ListItem' -> 'Item'. | John MacFarlane | |
2015-01-11 | node.js: toAST -> toObject. | John MacFarlane | |
2015-01-11 | node.js: Added title and destination to list of props to show in toAST. | John MacFarlane | |
2015-01-11 | node.js: use switch instead of if-else. | John MacFarlane | |
2015-01-10 | Made Node a local variable. | John MacFarlane | |
2015-01-10 | Made NodeWalker a regular function returning an object. | John MacFarlane | |
2015-01-09 | Removed a redundant condition. | John MacFarlane | |
2015-01-09 | Small optimization. | John MacFarlane | |
2015-01-09 | Non-recursive version of toAST(). | John MacFarlane | |
Closes #272. | |||
2015-01-09 | JS: Renamed 'c' property to 'literal' to match libcmark. | John MacFarlane | |
2015-01-09 | JS: sourceloc -> sourcepos for confirmity with cmark. | John MacFarlane | |
2015-01-09 | Replaced 'pos' with 'sourceloc', making it an array. | John MacFarlane | |
This is a more compact representation. | |||
2015-01-09 | Don't include string_content in output of toAST(). | John MacFarlane | |
2015-01-09 | Don't initialize strings, string_content to defined value. | John MacFarlane | |
2015-01-09 | Made `tight` a property of `list_data`. | John MacFarlane | |
2015-01-09 | Initialize more properties of Node. Even better performance! | John MacFarlane | |
2015-01-09 | Initialize more fields in Node. Better performance. | John MacFarlane | |
2015-01-09 | Initialize more fields in Node. | John MacFarlane | |
This helps with performance. | |||
2015-01-09 | Removed makeBlock. Use new Node directly. Initialize more fields. | John MacFarlane | |
2015-01-09 | JS linter cleanups. | John MacFarlane | |
2015-01-09 | Use linked list instead of arrays for AST. | John MacFarlane | |
Use the same doubly linked node structure that cmark uses. The primary advantages of this change are (a) simplified code, especially in the renderers, and (b) elimination of the need for recursion, so we can render deeply-nested structures without a stack overflow. A node walker has also been added, for easy AST traversal. * Added js/lib/node.js for nodes. Includes a node walker. * All modules updated to use node structures. * Regularized position information into pos property. * Performance is slightly worse than before, but only marginally, and no doubt there are more optimizations that can be done. |