@@ -12,7 +12,7 @@
"dependencies": {
"@ckeditor/ckeditor5-engine": "^21.0.0",
"marked": "^0.7.0",
- "turndown": "^5.0.3",
+ "turndown": "^6.0.0",
"turndown-plugin-gfm": "^1.0.2"
},
"engines": {
@@ -276,5 +276,41 @@ describe( 'GFMDataProcessor', () => {
'`code `` code ``` `'
);
} );
+
+ it( 'should handle triple ticks inside code', () => {
+ testDataProcessor(
+ '````\n' +
+ '```\n' +
+ 'Code\n' +
+ '````',
+ '<pre><code>' +
+ '```' +
+ '</code></pre>'
+ );
+ } );
+ it( 'should handle triple and quatruple ticks inside code', () => {
+ '`````\n' +
+ '`````',
+ '````' +