From d1019fb977f0b050e29c57686f731273a1fde120 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Tue, 26 Sep 2023 10:24:12 -0700 Subject: [PATCH] Fix style rendering in markdown (#1869) --- reflex/components/typography/markdown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/components/typography/markdown.py b/reflex/components/typography/markdown.py index bd973592d..dce376df2 100644 --- a/reflex/components/typography/markdown.py +++ b/reflex/components/typography/markdown.py @@ -12,6 +12,7 @@ from reflex.components.navigation import Link from reflex.components.tags.tag import Tag from reflex.components.typography.heading import Heading from reflex.components.typography.text import Text +from reflex.style import Style from reflex.utils import console, imports, types from reflex.vars import ImportVar, Var @@ -173,7 +174,7 @@ class Markdown(Component): component = self.component_map[tag](*children, **props).set( special_props=special_props ) - component._add_style(self.custom_styles.get(tag, {})) + component._add_style(Style(self.custom_styles.get(tag, {}))) return component def format_component(self, tag: str, **props) -> str: