function split_into_slides(text)
{
	var slides = text.split(/^---+\s+?$/m);
	
	for(i = 0; i < slides.length; true) {
		if(slides[i].match(/\w+/)) {
			i++;
			continue;
		}
		slides.splice(i, 1);
	}
	return slides;
}
/**
 * Split a markdown document into slides.
 * Slides are separated by '---'
 * Slides without word characters are removed.
 */
Split a markdown document into slides.
Slides are separated by '---'
Slides without word characters are removed.
Split a markdown document into slides . Slides are separated by ' --- ' Slides without word characters are removed .
function split_into_slides(text)
{
	var slides = text.split(/^---+\s+?$/m);
	for(i = 0; i < slides.length; true) {
		if(slides[i].match(/\w+/)) {
			i++;
			continue;
		}
		slides.splice(i, 1);
	}
	return slides;
}
function split_into_slides ( text ) { var slides = text . split ( / ^---+\s+?$ / m ) ; for ( i = 0 ; i < slides . length ; true ) { if ( slides [ i ] . match ( / \w+ / ) ) { i ++ ; continue ; } slides . splice ( i , 1 ) ; } return slides ; }
Split a markdown document into slides.
Split a markdown document into slides .