ionelmc / python-darkslide

Generate HTML5 slideshows from markdown, ReST, or textile
http://ionelmc.github.io/python-darkslide/
Apache License 2.0
97 stars 22 forks source link

`-x fenced_code` does not provide proper highlighting #9

Open venthur opened 6 years ago

venthur commented 6 years ago

Hi,

I want to write a presentation with code examples using fenced code blocks. That means instead of writing

!python def foo(): pass

I want to use the (more common) fenced code blocks:

def bar():
    pass

According to the docs darkslide supports the extensions provided by the python markdown library, but running

$ darkslide -x fenced_code slides.md

Produces proper python styling for the first example but unstyled

<pre><code class="python">def bar():
    pass
</code></pre>

for the second.