Skip to content

Commit

Permalink
Fix markdown rendering (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jan 31, 2020
1 parent 20e0811 commit a039e51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
},
entry_points={"console_scripts": ["webviz=webviz_config.command_line:main"]},
install_requires=[
"dash~=1.7",
# Pinning dash to the 1.7-series as long as
# https://github.com/plotly/dash-core-components/issues/746 is open
"dash~=1.7.0",
"bleach~=3.1",
"cryptography~=2.4",
"flask-caching~=1.4",
Expand Down
4 changes: 2 additions & 2 deletions webviz_config/plugins/_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from markdown.util import etree
from markdown.extensions import Extension
from markdown.inlinepatterns import ImageInlineProcessor, IMAGE_LINK_RE
import dash_core_components as html
import dash_core_components as dcc

from .. import WebvizPluginABC
from ..webviz_assets import WEBVIZ_ASSETS
Expand Down Expand Up @@ -178,7 +178,7 @@ def add_webvizstore(self):

@property
def layout(self):
return html.Markdown(self.html, dangerously_allow_html=True)
return dcc.Markdown(self.html, dangerously_allow_html=True)


@webvizstore
Expand Down

0 comments on commit a039e51

Please sign in to comment.