attributes: getForwardedAttributes()

in plugin/markdown/markdown.js [238:271]


						attributes: getForwardedAttributes( section )
					});

				}
				else {
					section.innerHTML = createMarkdownSlide( getMarkdownFromSlide( section ) );
				}

			});

			Promise.all( externalPromises ).then( resolve );

		} );

	}

	function loadExternalMarkdown( section ) {

		return new Promise( function( resolve, reject ) {

			var xhr = new XMLHttpRequest(),
				url = section.getAttribute( 'data-markdown' );

			datacharset = section.getAttribute( 'data-charset' );

			// see https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute#Notes
			if( datacharset != null && datacharset != '' ) {
				xhr.overrideMimeType( 'text/html; charset=' + datacharset );
			}

			xhr.onreadystatechange = function( section, xhr ) {
				if( xhr.readyState === 4 ) {
					// file protocol yields status code 0 (useful for local debug, mobile applications etc.)
					if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) {