app/blog/static/js/common/reveal/markdown.js
function getForwardedAttributes( section ) {

		var attributes = section.attributes;
		var result = [];

		for( var i = 0, len = attributes.length; i < len; i++ ) {
			var name = attributes[i].name,
				value = attributes[i].value;

			// disregard attributes that are used for markdown loading/parsing
			if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;

			if( value ) {
				result.push( name + '="' + value + '"' );
			}
			else {
				result.push( name );
			}
		}

		return result.join( ' ' );

	}
function getForwardedAttributes( section ) {

		var attributes = section.attributes;
		var result = [];

		for( var i = 0, len = attributes.length; i < len; i++ ) {
			var name = attributes[i].name,
				value = attributes[i].value;

			// disregard attributes that are used for markdown loading/parsing
			if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;

			if( value ) {
				result.push( name + '="' + value + '"' );
			}
			else {
				result.push( name );
			}
		}

		return result.join( ' ' );

	}
function getForwardedAttributes ( section ) { var attributes = section . attributes ; var result = [ ] ; for ( var i = 0 , len = attributes . length ; i < len ; i ++ ) { var name = attributes [ i ] . name , value = attributes [ i ] . value ; // disregard attributes that are used for markdown loading/parsing if ( / data\-(markdown|separator|vertical|notes) / gi . test ( name ) ) continue ; if ( value ) { result . push ( name + '="' + value + '"' ) ; } else { result . push ( name ) ; } } return result . join ( ' ' ) ; }
Given a markdown slide section element, this will
return all arguments that aren't related to markdown
parsing. Used to forward any other user-defined arguments
to the output markdown slide.
Given a markdown slide section element this will return all arguments that aren t related to markdown parsing . Used to forward any other user - defined arguments to the output markdown slide .