renamed markdown attributes for clarity and consistency: data-vertical -> data-separator-vertical, data-notes -> data-separator-notes
This commit is contained in:
		| @@ -59,8 +59,8 @@ When used locally, this feature requires that reveal.js [runs from a local web s | |||||||
| ```html | ```html | ||||||
| <section data-markdown="example.md"   | <section data-markdown="example.md"   | ||||||
|          data-separator="^\n\n\n"   |          data-separator="^\n\n\n"   | ||||||
|          data-vertical="^\n\n"   |          data-separator-vertical="^\n\n"   | ||||||
|          data-notes="^Note:"   |          data-separator-notes="^Note:"   | ||||||
|          data-charset="iso-8859-15"> |          data-charset="iso-8859-15"> | ||||||
| </section> | </section> | ||||||
| ``` | ``` | ||||||
| @@ -621,7 +621,7 @@ When used locally, this feature requires that reveal.js [runs from a local web s | |||||||
| If you're using the external Markdown plugin, you can add notes with the help of a special delimiter: | If you're using the external Markdown plugin, you can add notes with the help of a special delimiter: | ||||||
|  |  | ||||||
| ```html | ```html | ||||||
| <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n" data-notes="^Note:"></section> | <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n" data-separator-notes="^Note:"></section> | ||||||
|  |  | ||||||
| # Title | # Title | ||||||
| ## Sub-title | ## Sub-title | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ | |||||||
| 			<div class="slides"> | 			<div class="slides"> | ||||||
|  |  | ||||||
|                 <!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines --> |                 <!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines --> | ||||||
|                 <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> |                 <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> | ||||||
|  |  | ||||||
|                 <!-- Slides are separated by three dashes (quick 'n dirty regular expression) --> |                 <!-- Slides are separated by three dashes (quick 'n dirty regular expression) --> | ||||||
|                 <section data-markdown data-separator="---"> |                 <section data-markdown data-separator="---"> | ||||||
| @@ -36,7 +36,7 @@ | |||||||
|                 </section> |                 </section> | ||||||
|  |  | ||||||
|                 <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> |                 <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> | ||||||
|                 <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$"> |                 <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$"> | ||||||
|                     <script type="text/template"> |                     <script type="text/template"> | ||||||
|                         ## Demo 2 |                         ## Demo 2 | ||||||
|                         Slide 1.1 |                         Slide 1.1 | ||||||
|   | |||||||
| @@ -223,8 +223,8 @@ | |||||||
|  |  | ||||||
| 							section.outerHTML = slidify( xhr.responseText, { | 							section.outerHTML = slidify( xhr.responseText, { | ||||||
| 								separator: section.getAttribute( 'data-separator' ), | 								separator: section.getAttribute( 'data-separator' ), | ||||||
| 								verticalSeparator: section.getAttribute( 'data-vertical' ), | 								verticalSeparator: section.getAttribute( 'data-separator-vertical' ), | ||||||
| 								notesSeparator: section.getAttribute( 'data-notes' ), | 								notesSeparator: section.getAttribute( 'data-separator-notes' ), | ||||||
| 								attributes: getForwardedAttributes( section ) | 								attributes: getForwardedAttributes( section ) | ||||||
| 							}); | 							}); | ||||||
|  |  | ||||||
| @@ -251,12 +251,12 @@ | |||||||
| 				} | 				} | ||||||
|  |  | ||||||
| 			} | 			} | ||||||
| 			else if( section.getAttribute( 'data-separator' ) || section.getAttribute( 'data-vertical' ) || section.getAttribute( 'data-notes' ) ) { | 			else if( section.getAttribute( 'data-separator' ) || section.getAttribute( 'data-separator-vertical' ) || section.getAttribute( 'data-separator-notes' ) ) { | ||||||
|  |  | ||||||
| 				section.outerHTML = slidify( getMarkdownFromSlide( section ), { | 				section.outerHTML = slidify( getMarkdownFromSlide( section ), { | ||||||
| 					separator: section.getAttribute( 'data-separator' ), | 					separator: section.getAttribute( 'data-separator' ), | ||||||
| 					verticalSeparator: section.getAttribute( 'data-vertical' ), | 					verticalSeparator: section.getAttribute( 'data-separator-vertical' ), | ||||||
| 					notesSeparator: section.getAttribute( 'data-notes' ), | 					notesSeparator: section.getAttribute( 'data-separator-notes' ), | ||||||
| 					attributes: getForwardedAttributes( section ) | 					attributes: getForwardedAttributes( section ) | ||||||
| 				}); | 				}); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -19,10 +19,10 @@ | |||||||
|  |  | ||||||
| 			<div class="slides"> | 			<div class="slides"> | ||||||
|  |  | ||||||
| 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> --> | 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> --> | ||||||
|  |  | ||||||
| 				<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> | 				<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> | ||||||
| 				<section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">> | 				<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">> | ||||||
| 					<script type="text/template"> | 					<script type="text/template"> | ||||||
| 						## Slide 1.1 | 						## Slide 1.1 | ||||||
| 						<!-- {_class="fragment fade-out" data-fragment-index="1"} --> | 						<!-- {_class="fragment fade-out" data-fragment-index="1"} --> | ||||||
| @@ -75,8 +75,8 @@ | |||||||
|  |  | ||||||
|  |  | ||||||
| 				<section 	data-markdown data-separator="^\n\n\n" | 				<section 	data-markdown data-separator="^\n\n\n" | ||||||
| 									data-vertical="^\n\n" | 									data-separator-vertical="^\n\n" | ||||||
| 									data-notes="^Note:" | 									data-separator-notes="^Note:" | ||||||
| 									data-charset="utf-8"> | 									data-charset="utf-8"> | ||||||
| 					<script type="text/template"> | 					<script type="text/template"> | ||||||
| 						# Test attributes in Markdown with default separator | 						# Test attributes in Markdown with default separator | ||||||
|   | |||||||
| @@ -19,12 +19,12 @@ | |||||||
|  |  | ||||||
| 			<div class="slides"> | 			<div class="slides"> | ||||||
|  |  | ||||||
| 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> --> | 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> --> | ||||||
|  |  | ||||||
| 				<!-- Slides are separated by three lines, vertical slides by two lines, attributes are one any line starting with (spaces and) two dashes --> | 				<!-- Slides are separated by three lines, vertical slides by two lines, attributes are one any line starting with (spaces and) two dashes --> | ||||||
| 				<section 	data-markdown data-separator="^\n\n\n" | 				<section 	data-markdown data-separator="^\n\n\n" | ||||||
| 									data-vertical="^\n\n" | 									data-separator-vertical="^\n\n" | ||||||
| 									data-notes="^Note:" | 									data-separator-notes="^Note:" | ||||||
| 									data-attributes="--\s(.*?)$" | 									data-attributes="--\s(.*?)$" | ||||||
| 									data-charset="utf-8"> | 									data-charset="utf-8"> | ||||||
| 					<script type="text/template"> | 					<script type="text/template"> | ||||||
| @@ -56,8 +56,8 @@ | |||||||
| 				</section> | 				</section> | ||||||
|  |  | ||||||
| 				<section 	data-markdown data-separator="^\n\n\n" | 				<section 	data-markdown data-separator="^\n\n\n" | ||||||
| 									data-vertical="^\n\n" | 									data-separator-vertical="^\n\n" | ||||||
| 									data-notes="^Note:" | 									data-separator-notes="^Note:" | ||||||
| 									data-charset="utf-8"> | 									data-charset="utf-8"> | ||||||
| 					<script type="text/template"> | 					<script type="text/template"> | ||||||
| 						# Test attributes in Markdown with default separator | 						# Test attributes in Markdown with default separator | ||||||
|   | |||||||
| @@ -19,10 +19,10 @@ | |||||||
|  |  | ||||||
| 			<div class="slides"> | 			<div class="slides"> | ||||||
|  |  | ||||||
| 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> --> | 				<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> --> | ||||||
|  |  | ||||||
| 				<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> | 				<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> | ||||||
| 				<section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$"> | 				<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$"> | ||||||
| 					<script type="text/template"> | 					<script type="text/template"> | ||||||
| 						## Slide 1.1 | 						## Slide 1.1 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user