From 7bfb5dd6915fd455e93086fc2b546802bdd77027 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 18:45:58 -0800 Subject: JS: sourceloc -> sourcepos for confirmity with cmark. --- js/lib/blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lib/blocks.js') 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': -- cgit v1.2.3