Syntax highlighting not working
anders-kiaer opened this issue · 0 comments
anders-kiaer commented
Description
Code is not syntax highlighted.
Expected behavior
Code is syntax highlighted when included using Markdown
PageElement
.
Actual behavior
No syntax highlight occurs, but looking at the html
output from the example below it is almost working:
<pre class="codehilite"><code class="language-python linenums">def hello():
# This is a comment
print('Hello World')</code></pre>
How to reproduce
from webviz import Webviz, Markdown
web = Webviz('Main title')
some_content = ("""
# Markdown support
Testing syntax highlighting:
#!python
def hello():
# This is a comment
print('Hello World')
""")
web.index.add_content(Markdown(some_content))
web.write_html("./webviz_example", overwrite=True, display=True)