소스 검색

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