lca2019-talk/plugin/markdown
VonC 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
..
example.html merge support for notes when using external markdown 2013-08-20 22:32:19 -04:00
example.md merge support for notes when using external markdown 2013-08-20 22:32:19 -04:00
markdown.js Add attributes in markdown for slide generation. 2013-11-04 16:31:15 +01:00
marked.js remove lang prefix from marked.js to fix highlight issue 2013-05-02 18:42:12 +03:00