1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-16 19:44:13 +02:00

Merge pull request #682 from tentacode/patch-1

Indentation issue when using code in a markdown slide
This commit is contained in:
Hakim El Hattab
2014-04-06 09:56:54 +02:00

View File

@@ -50,7 +50,7 @@
text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' ); text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
} }
else if( leadingWs > 1 ) { else if( leadingWs > 1 ) {
text = text.replace( new RegExp('\\n? {' + leadingWs + '}','g'), '\n' ); text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' );
} }
return text; return text;