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