瀏覽代碼

Fix condition in html2markdown processing.

Maciej Gołaszewski 5 年之前
父節點
當前提交
516ed39369
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-markdown-gfm/src/html2markdown/html2markdown.js

+ 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 ) );
 		}