We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a538fb8 commit a287c5aCopy full SHA for a287c5a
src/code-block/transforms.js
@@ -27,7 +27,7 @@ export default {
27
const attributes = language ? { language } : {};
28
29
// Extract content without backticks and (optionally) language.
30
- attributes.content = startingMatch ? content.replace( startingMatch, '' ).replace( /```$/, '' ) : content;
+ attributes.content = startingMatch ? content.replace( startingMatch, '' ).replace( /```\s*$/, '' ) : content;
31
32
return createBlock( 'syntaxhighlighter/code', attributes );
33
},
0 commit comments