8
0
Pārlūkot izejas kodu

Fix condition in html2markdown processing.

Maciej Gołaszewski 5 gadi atpakaļ
vecāks
revīzija
516ed39369

+ 1 - 1
packages/ckeditor5-markdown-gfm/src/html2markdown/html2markdown.js

@@ -36,7 +36,7 @@ TurndownService.prototype.escape = function( string ) {
 		const index = match.index;
 
 		// Append the substring between the last match and the current one (if anything).
-		if ( index >= lastLinkEnd ) {
+		if ( index > lastLinkEnd ) {
 			escaped += escape( string.substring( lastLinkEnd, index ) );
 		}