From a039e516e80c078496076d69285ea55a21f6861a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Fri, 31 Jan 2020 09:12:38 +0000 Subject: [PATCH] Fix markdown rendering (#188) --- setup.py | 4 +++- webviz_config/plugins/_markdown.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b4bbd922..ad862e6e 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/webviz_config/plugins/_markdown.py b/webviz_config/plugins/_markdown.py index ed4421f6..86ef78ce 100644 --- a/webviz_config/plugins/_markdown.py +++ b/webviz_config/plugins/_markdown.py @@ -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 @@ -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