Commit 9b03ea5e authored by ak's avatar ak
Browse files

work on comments issue

parent 5fb27d5b
......@@ -18,7 +18,10 @@
# Pykyll Slide Decks
How to and example
How to and example
Note:
Press [s] in speaker view. Allow pop-ups
---
......@@ -29,6 +32,9 @@ How to and example
- Change `html` frontmatter tag to `true`
- Change `type` frontmatter tag to `slides`
Note:
There there.
---
## Contents
......
......@@ -16,7 +16,10 @@ type: slides
# Pykyll Slide Decks
How to and example
How to and example <!-- .element class="fragment fade-in" data-fragment-index="1" -->
Note:
Press [s] in speaker view. Allow pop-ups
---
......@@ -27,6 +30,9 @@ How to and example
- Change `html` frontmatter tag to `true`
- Change `type` frontmatter tag to `slides`
Note:
There there.
---
## Contents
......
......@@ -94,6 +94,7 @@
<ul>
<li><a href="#html5-video">HTML5 Video</a></li>
<li><a href="#audio">Audio</a></li>
<li><a href="#audio-1">Audio</a></li>
</ul></li>
</ul></li>
</ul>
......@@ -172,5 +173,12 @@ View, have others <a href="slides.html">view along</a> or read right here:
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true"></a><span class="kw">&lt;audio</span><span class="ot"> controls src=</span><span class="st">&quot;audio.mp3&quot;</span><span class="ot"> type=</span><span class="st">&quot;audio/mpeg&quot;</span><span class="kw">&gt;&lt;/audio&gt;</span></span></code></pre></div>
<p>A better way to embedd audio files may be implemented in a future version. Contributions welcome.</p>
<hr />
<h3 id="audio-1">Audio</h3>
<audio controls src="audio.mp3" type="audio/mpeg">
</audio>
<div class="sourceCode" id="cb3"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true"></a></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true"></a><span class="kw">&lt;audio</span><span class="ot"> controls src=</span><span class="st">&quot;audio.mp3&quot;</span><span class="ot"> type=</span><span class="st">&quot;audio/mpeg&quot;</span><span class="kw">&gt;&lt;/audio&gt;</span></span></code></pre></div>
<p>A better way to embedd audio files may be implemented in a future version. Contributions welcome.</p>
<hr />
</body>
</html>
......@@ -85,4 +85,18 @@ Here, the video is stored in a NextCloud instance. How to:
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
### Audio
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```html
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
\ No newline at end of file
......@@ -119,7 +119,8 @@ View, have others <a href="slides.html">view along</a> or read right here:
</table>
<!-- .slide: data-background="black" -->
<h1 id="pykyll-slide-decks">Pykyll Slide Decks</h1>
<p>How to and example</p>
<p>How to and example <!-- .element class="fragment fade-in" data-fragment-index="1" --></p>
<p>Note: Press [s] in speaker view. Allow pop-ups</p>
<hr />
<h2 id="set-up">Set-up</h2>
<ul>
......@@ -130,6 +131,7 @@ View, have others <a href="slides.html">view along</a> or read right here:
<li>Change <code>type</code> frontmatter tag to <code>slides</code></li>
</ul></li>
</ul>
<p>Note: There there.</p>
<hr />
<h2 id="contents">Contents</h2>
<p>A slide show in markdown could look like this:</p>
......
......@@ -2,7 +2,10 @@
# Pykyll Slide Decks
How to and example
How to and example <!-- .element class="fragment fade-in" data-fragment-index="1" -->
Note:
Press [s] in speaker view. Allow pop-ups
---
......@@ -13,6 +16,9 @@ How to and example
- Change `html` frontmatter tag to `true`
- Change `type` frontmatter tag to `slides`
Note:
There there.
---
## Contents
......
......@@ -341,8 +341,10 @@ class Pykyll:
out_string = out_string + "# " + link + "\n\n"
else:
out_string = out_string + \
re.sub("(<!--.*?-->)", "",
post.content)
re.sub("(<!--.*?-->)", "", post.content)
# needs rethinking
if post["type"] == "slides":
out_string = re.sub("(<!--.*?-->)", "", out_string, flags=re.MULTILINE)
out_string = out_string + \
"\n\n#### {} \n\n{}\n\n{}".format(
post["title"], post["subtitle"], post["description"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment