We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4944b22 commit 27a73f7Copy full SHA for 27a73f7
lib/node_modules/@stdlib/repl/presentation/lib/parse_slide.js
@@ -32,7 +32,7 @@ var emoji = require( './emoji.js' );
32
33
var FRAGMENT_SEP = '--';
34
var NOTES_SEP = '~~~';
35
-var RE_CODE_DELIMITER = /^```\s*([a-z]+)?$/;
+var RE_CODE_DELIMITER = /^\s*```\s*([a-z]+)?$/;
36
var CODE_INDENTATION = ' ';
37
38
// Hash for normalizing code block languages:
@@ -121,7 +121,7 @@ function parseSlide( text ) {
121
continue;
122
}
123
if ( CODE_BLOCK ) {
124
- out.code[ out.code.length-1 ].src.push( line );
+ out.code[ out.code.length-1 ].src.push( trim( line ) );
125
line = CODE_INDENTATION + line;
126
127
// TODO: apply syntax highlighting
0 commit comments