Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | 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-17 | Renamed DocParser -> Parser. | John MacFarlane | |
Note: library users should update their code or it will break. | |||
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 | addLine: use this.offset; removed offset parameter. | John MacFarlane | |
2015-01-17 | Added offset property to DocParser. | John MacFarlane | |
2015-01-17 | Moved check for closing fence to close-block-check section. | John MacFarlane | |
This is a more logical arrangement. | |||
2015-01-17 | Minor code simplification. | John MacFarlane | |
2015-01-17 | Performance optimization - avoid repeating scan for nonspace. | John MacFarlane | |
2015-01-17 | Slightly adjusted performance optimization in new block starts. | John MacFarlane | |
2015-01-17 | Minor code cleanup. | John MacFarlane | |
2015-01-16 | Defer closing of fenced code blocks. | John MacFarlane | |
Instead of closing a fenced code block when we see the closing fence, we set fenceLength to -1, which then signals the code that checks for block enders that it is time to close the block. This allows us to process a blank line after the fenced code and set _lastLineBlank appropriately. Addresses #285 for JS implementation. | |||
2015-01-16 | Removed unnecessary setting of default tight=true in finalize. | John MacFarlane | |
We do that when the listData object is initialized. | |||
2015-01-16 | Check for blank line before checking indent in Item. | John MacFarlane | |
2015-01-16 | Rename bullet_char -> bulletChar. | 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 setType(), replaced getType() with type(). | John MacFarlane | |
2015-01-15 | Removed vestigial ReferenceDef node 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-14 | Slightly more efficient test for lazy continuation. | John MacFarlane | |
2015-01-13 | Initialize fields in objects to null rather than undefined. | John MacFarlane | |
Big speed boost. | |||
2015-01-13 | blocks.js - avoid an implicit boolean cast. | John MacFarlane | |
2015-01-13 | Simplified some of the new-block-start logic. | John MacFarlane | |
2015-01-13 | Assign marker_offset to list data at initialization. | John MacFarlane | |
2015-01-13 | last_matched_container -> lastMatchedContainer. | John MacFarlane | |
2015-01-13 | Ensure that closeUnmatchedBlocks is not called unnecessarily. | John MacFarlane | |
2015-01-13 | Fixed start column for blockquotes. | John MacFarlane | |
2015-01-13 | Added lineNumber proper to DocParser. | John MacFarlane | |
Removed lineNumber param from addChild and some other methods. | |||
2015-01-12 | Made closeUnmatchedBlocks a method of DocParser... | John MacFarlane | |
instead of a closure. Performance increase and code simplification. | |||
2015-01-12 | Use new with Document and NodeWalker constructors. | John MacFarlane | |
2015-01-12 | Moved "use strict" to top of modules. | John MacFarlane | |
2015-01-11 | Factored out unescapeString into new module, js/common.js. | John MacFarlane | |
This is used in both blocks.js and inlines.js. |