Browse Source

standardize way of declaring functions

embed
Hakim El Hattab 11 years ago
parent
commit
4350c0024f
  1. 14
      plugin/markdown/markdown.js

14
plugin/markdown/markdown.js

@ -14,7 +14,7 @@
}); });
} }
var stripLeadingWhitespace = function( section ) { function stripLeadingWhitespace( section ) {
var template = section.querySelector( 'script' ); var template = section.querySelector( 'script' );
@ -35,7 +35,7 @@
}; };
var twrap = function( el ) { function twrap( el ) {
var content = el.content || el; var content = el.content || el;
@ -47,7 +47,7 @@
}; };
var getForwardedAttributes = function( section ) { function getForwardedAttributes( section ) {
var attributes = section.attributes; var attributes = section.attributes;
var result = []; var result = [];
@ -71,7 +71,7 @@
}; };
var slidifyMarkdown = function( markdown, separator, vertical, notes, attributes ) { function slidifyMarkdown( markdown, separator, vertical, notes, attributes ) {
separator = separator || '^\n---\n$'; separator = separator || '^\n---\n$';
notes = notes || 'note:'; notes = notes || 'note:';
@ -146,7 +146,7 @@
return markdownSections; return markdownSections;
}; };
var queryExternalMarkdown = function() { function queryExternalMarkdown() {
var sections = document.querySelectorAll( '[data-markdown]'), var sections = document.querySelectorAll( '[data-markdown]'),
section; section;
@ -199,7 +199,7 @@
}; };
var queryMarkdownSlides = function() { function queryMarkdownSlides() {
var sections = document.querySelectorAll( '[data-markdown]'); var sections = document.querySelectorAll( '[data-markdown]');
@ -211,7 +211,7 @@
}; };
var makeHtml = function( section ) { function makeHtml( section ) {
var notes = section.querySelector( 'aside.notes' ); var notes = section.querySelector( 'aside.notes' );

Loading…
Cancel
Save