From 3c89f2660280266d9d82cf398b2ff9ba5d693fff Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 7 Sep 2014 07:52:27 -0700 Subject: Partially address #48 in js parser. TODO: C parser, add test case to spec. --- js/stmd.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js') diff --git a/js/stmd.js b/js/stmd.js index 29e4c01..13bdbd6 100755 --- a/js/stmd.js +++ b/js/stmd.js @@ -346,6 +346,13 @@ var parseEmphasis = function(inlines) { // giving us res.numdelims = 1; } + + if (first_close_delims === 1) { + res.numdelims = 2; + } else if (first_close_delims === 2) { + res.numdelims = 1; + } + this.pos += res.numdelims; if (first_close > 0) { // if we've already passed the first closer: -- cgit v1.2.3