aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEric Bidelman2012-10-20 16:49:12 +0900
committerEric Bidelman2012-10-20 16:49:12 +0900
commitffcabeca9409e0445dc0867e913f6601a170a600 (patch)
tree3f2c5919f24a70987aad3a80d73ce0ee2f6eb7a9 /scripts
parent1e5ccd449dfd0416a3c75a3941d5b9444001fd2a (diff)
downloadio-slides-remote-ffcabeca9409e0445dc0867e913f6601a170a600.tar.gz
Build list support
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/md/render.py3
-rw-r--r--scripts/md/slides.md9
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
49def postprocess_html(html, metadata): 49def 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
53if __name__ == '__main__': 56if __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
15title: Agenda 15title: Agenda
16class: big 16class: big
17build_lists: true
17 18
18Things we'll cover: 19Things 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
75title: Centered content
76content_class: flexbox vcenter
77
78This content should be centered!