[REF-3006] Inline code rendered in rx.markdown has extra trailing space (#3426)
Avoid replacing newlines with whitespaces... these show up in the rendered output 😱 Fix #3425
This commit is contained in:
parent
6420fb1252
commit
096ecf3113
@ -229,7 +229,7 @@ class Markdown(Component):
|
||||
Returns:
|
||||
The formatted component.
|
||||
"""
|
||||
return str(self.get_component(tag, **props)).replace("\n", " ")
|
||||
return str(self.get_component(tag, **props)).replace("\n", "")
|
||||
|
||||
def format_component_map(self) -> dict[str, str]:
|
||||
"""Format the component map for rendering.
|
||||
|
Loading…
Reference in New Issue
Block a user