File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 22//
33'use strict' ;
44
5- var getLineOffset = require ( '../common/utils' ) . getLineOffset ;
6-
7-
85// Insert each marker as a separate text token, and add it to delimiter list
96//
107module . exports . tokenize = function emphasis ( state , silent ) {
@@ -107,7 +104,7 @@ function postProcess(state, delimiters) {
107104 token . nesting = 1 ;
108105 token . markup = isStrong ? ch + ch : ch ;
109106 token . content = '' ;
110- token . position = startDelim . position + getLineOffset ( state , startDelim . token ) ;
107+ token . position = startDelim . position ;
111108
112109 token = state . tokens [ endDelim . token ] ;
113110 token . type = isStrong ? 'strong_close' : 'em_close' ;
Original file line number Diff line number Diff line change 22//
33'use strict' ;
44
5- var getLineOffset = require ( '../common/utils' ) . getLineOffset ;
6-
75// Insert each marker as a separate text token, and add it to delimiter list
86//
97module . exports . tokenize = function strikethrough ( state , silent ) {
@@ -76,7 +74,7 @@ function postProcess(state, delimiters) {
7674 token . nesting = 1 ;
7775 token . markup = '~~' ;
7876 token . content = '' ;
79- token . position = startDelim . position + getLineOffset ( state , startDelim . token ) ;
77+ token . position = startDelim . position ;
8078
8179 token = state . tokens [ endDelim . token ] ;
8280 token . type = 's_close' ;
You can’t perform that action at this time.
0 commit comments