diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 18:45:58 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 18:45:58 -0800 |
commit | 7bfb5dd6915fd455e93086fc2b546802bdd77027 (patch) | |
tree | 90149b4bebb655d7bcd558e396e1ab8bcca05085 /js/lib/blocks.js | |
parent | 05c60132f4ba80f5d62d99e7d0be27715ade06e5 (diff) |
JS: sourceloc -> sourcepos for confirmity with cmark.
Diffstat (limited to 'js/lib/blocks.js')
-rw-r--r-- | js/lib/blocks.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 63eca24..a83bccf 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -482,7 +482,7 @@ var incorporateLine = function(ln, line_number) { container.t === 'FencedCode' || (container.t === 'ListItem' && !container.firstChild && - container.sourceloc[0][0] === line_number)); + container.sourcepos[0][0] === line_number)); var cont = container; while (cont.parent) { @@ -548,7 +548,7 @@ var finalize = function(block, line_number) { return 0; } block.open = false; - block.sourceloc[1] = [line_number, this.lastLineLength + 1]; + block.sourcepos[1] = [line_number, this.lastLineLength + 1]; switch (block.t) { case 'Paragraph': |