2901abccde
Merge pull request #682 from tentacode/patch-1
...
Indentation issue when using code in a markdown slide
2014-04-06 09:56:54 +02:00
015468c3a2
renamed markdown attributes for clarity and consistency: data-vertical -> data-separator-vertical, data-notes -> data-separator-notes
2014-02-17 21:15:02 +01:00
9a9ce672b7
add example of markdown slide and element attributes
2013-12-02 12:20:48 +01:00
f2097417da
Simpler default syntax for markdown attributes.
...
- on slides: .slide x=y
- on elements: .element x=y
Those are detected in html comment, in order to not be visible
if a markdown is edited in an html editor.
2013-11-30 23:12:40 +01:00
13da34cc6b
Removes console.log calls.
2013-11-30 23:12:40 +01:00
d52eb599d1
Fix previous element selection.
2013-11-30 23:12:39 +01:00
8ad633e4f3
Fix element attributes, except for multi-line.
2013-11-30 23:12:39 +01:00
3330c2a764
Remove section attribute implementation.
2013-11-30 23:12:38 +01:00
dd9fa3e22b
First refactoring
2013-11-30 23:12:38 +01:00
e7e941b663
add code slide to markdown example #682
2013-11-07 08:03:22 -05:00
4b0fe47bb6
Add slide attributes for single slide section case.
2013-11-06 11:06:03 +01:00
2cdd1afe85
Remove console.log debugs, and fix tabs
2013-11-04 16:31:51 +01:00
492a094955
Fix default separator pattern for attribute in slide.
2013-11-04 16:31:47 +01:00
83ee2eb00e
Fix markdown.js slideAttributesSeparator selection.
2013-11-04 16:31:33 +01:00
d6b8e4a246
Rebased on dev, and following contribution guideline.
2013-11-04 16:31:29 +01:00
ec72e8cbc7
Fix markdown vertical wrapping section element generation.
2013-11-04 16:31:25 +01:00
e1b11e737e
Make sure a pattern doesn't include space.
2013-11-04 16:31:22 +01:00
f6445a04a0
Fix bug on data attributes for first vertical slide.
...
The first slide of a vertical stack see some data attributes ignored.
Mainly the data-transition one.
Repeat all data-attributes on the wrapping section element.
Ignore any other attributes (like 'id="xxx"'), in order to not
mess with internal links (by repeating twice an id).
2013-11-04 16:31:18 +01:00
c51ab74d72
Add attributes in markdown for slide generation.
...
By default, look for <!-- slide-attributes: xxxx -->.
Whatever 'xxx' is will be added to the section attributes.
You can define your own pattern with 'data-attributes'.
For instance 'data-attributes="^\s*?-- (.*?)$"':
that will be added to the options.
The 'attributes' section is removed from the content of the slide,
so the final markdown doesn't reflect them.
That also means you can add those attributes *anywhere* in the slide
But that allows for *any* attribute to be added for a specifc slide,
like:
- id="plan", for allowing internal link (issue #430 )
- data-background="#ff0000"
- data-transition="fade"
You list those attributes on a single line, like
- (default):
` <!-- id="plan" data-background="#ff0000" -->`
- or, with an alternative data-attributes pattern:
` -- id="plan" data-background="#ff0000"`
Again, that line is remove from the final content.
2013-11-04 16:31:15 +01:00
80aadaf74e
Removing global flag for replacing whitespaces
2013-10-31 14:02:34 +01:00
d844195be1
format tweaks markdown.js, remove extra image asset
2013-10-28 09:06:43 -04:00
a87ce95794
Add 'data-element-attributes' attr. to 'section'.
...
By default '{\\\.\s*?([^}]+?)}'.
2013-10-27 22:49:43 +01:00
7aa93af0ca
Cleanup code, remove console log debugs.
2013-10-27 22:49:43 +01:00
28198b2ff0
Add attributes extracted from an attribute.
...
Allows to add attributes to element of an attribute which contains
the attribute pattern.
2013-10-27 22:49:42 +01:00
d20760f40d
Uses the right method setAttribute.
...
Works better, and the html elements get their attributes.
2013-10-27 22:49:42 +01:00
0bc3a836fc
First implem for adding classes to enclosing elts.
...
Extra text representing classes is detected and correctly removed.
Adding attributes isn't working yet.
2013-10-27 22:49:41 +01:00
942724238f
better check for arrays in markdown plugin
2013-10-11 22:05:43 -04:00
275efa061a
Property 'length' is not a variable.
2013-09-29 11:34:17 +02:00
c453bc4770
markdown plugin can now process slides that are added at runtime
2013-09-06 08:40:43 -04:00
ef9168c7c4
fix issue with notes on last slide of external markdown #589
2013-09-06 08:24:03 -04:00
d9c9474938
markdown refactoring #507
2013-08-27 09:11:43 -04:00
571fb67864
fix bug where markdown notes in last slide would not parse #574
2013-08-24 16:13:24 -04:00
7e629936e5
always use 'i' as iterator
2013-08-24 11:06:52 -04:00
7f85c21386
markdown refactoring; comments, renamed functions, shorter argument lists
2013-08-24 10:39:15 -04:00
1c5da37ca6
more markdown plugin refactoring
2013-08-24 10:03:34 -04:00
4350c0024f
standardize way of declaring functions
2013-08-23 17:51:20 -04:00
b968dfef15
update markdown plugin formatting to match reveal.js core
2013-08-23 17:49:19 -04:00
631a237b36
merge support for notes when using external markdown
2013-08-20 22:32:19 -04:00
fe90f2b8c7
Merge branch 'bug/markdown' of https://github.com/snowyu/reveal.js into dev
2013-07-31 08:37:53 -04:00
efbcab57f7
* [bug] fixed render markdown file error like this:
...
```html
<section data-markdown>
<script type="text/template">
</script>
</section>
```
2013-07-31 07:12:29 +08:00
4c491e5ecc
highlight charset option for external md in readme #537
2013-07-24 23:35:28 -04:00
3ca598473b
updated markdown example with data-charset
2013-07-23 17:34:23 +02:00
ce0facf7b2
added custom charset support for external markdown file
2013-07-23 17:31:30 +02:00
245efee894
Support for notes within markdown
2013-06-25 12:15:22 +01:00
0cbe741afd
remove lang prefix from marked.js to fix highlight issue
2013-05-02 18:42:12 +03:00
39b53a7b3c
minify marked #433
2013-05-02 09:18:28 -04:00
381da383d9
Replace the ShowDown Markdown engine with marked
2013-05-01 23:10:31 +03:00
914a12e9cf
forward all attributes for markdown slides ( #413 )
2013-04-20 09:16:41 -04:00
6536d8467f
Added support for data-state in section when using external markdown files.
2013-04-20 12:45:11 +02:00
f6487dc312
More verbose error slide (HTTP necessary)
2013-03-24 23:30:50 +01:00