diff options
author | Eric Bidelman | 2012-10-20 16:49:12 +0900 |
---|---|---|
committer | Eric Bidelman | 2012-10-20 16:49:12 +0900 |
commit | ffcabeca9409e0445dc0867e913f6601a170a600 (patch) | |
tree | 3f2c5919f24a70987aad3a80d73ce0ee2f6eb7a9 /scripts/md | |
parent | 1e5ccd449dfd0416a3c75a3941d5b9444001fd2a (diff) | |
download | io-slides-remote-ffcabeca9409e0445dc0867e913f6601a170a600.tar.gz |
Build list support
Diffstat (limited to 'scripts/md')
-rwxr-xr-x | scripts/md/render.py | 3 | ||||
-rw-r--r-- | scripts/md/slides.md | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/scripts/md/render.py b/scripts/md/render.py index edc667d..08a926f 100755 --- a/scripts/md/render.py +++ b/scripts/md/render.py | |||
@@ -48,6 +48,9 @@ def parse_metadata(section): | |||
48 | 48 | ||
49 | def postprocess_html(html, metadata): | 49 | def postprocess_html(html, metadata): |
50 | """Returns processed HTML to fit into the slide template format.""" | 50 | """Returns processed HTML to fit into the slide template format.""" |
51 | if metadata.get('build_lists') and metadata['build_lists'] == 'true': | ||
52 | html = html.replace('<ul>', '<ul class="build">') | ||
53 | print html | ||
51 | return html | 54 | return html |
52 | 55 | ||
53 | if __name__ == '__main__': | 56 | if __name__ == '__main__': |
diff --git a/scripts/md/slides.md b/scripts/md/slides.md index 8dd4d30..f8155ac 100644 --- a/scripts/md/slides.md +++ b/scripts/md/slides.md | |||
@@ -14,8 +14,9 @@ class: segue dark nobackground | |||
14 | 14 | ||
15 | title: Agenda | 15 | title: Agenda |
16 | class: big | 16 | class: big |
17 | build_lists: true | ||
17 | 18 | ||
18 | Things we'll cover: | 19 | Things we'll cover (list should build): |
19 | 20 | ||
20 | - Bullet1 | 21 | - Bullet1 |
21 | - Bullet2 | 22 | - Bullet2 |
@@ -69,3 +70,9 @@ function detectFormFactor() { | |||
69 | } | 70 | } |
70 | </pre> | 71 | </pre> |
71 | 72 | ||
73 | --- | ||
74 | |||
75 | title: Centered content | ||
76 | content_class: flexbox vcenter | ||
77 | |||
78 | This content should be centered! | ||