- Commit
- 3c89f2660280266d9d82cf398b2ff9ba5d693fff
- Parent
- 76e133cafe0f45e44c57e391c67af1c2f0057004
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
Partially address #48 in js parser.
TODO: C parser, add test case to spec.
My personal build of CMark ✏️
Partially address #48 in js parser.
TODO: C parser, add test case to spec.
1 file changed, 7 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/stmd.js | 7 | 7 | 0 |
diff --git a/js/stmd.js b/js/stmd.js @@ -346,6 +346,13 @@ var parseEmphasis = function(inlines) { // giving us <strong><em> 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: