[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:
Masen Furer 2024-06-05 07:55:02 -07:00 committed by GitHub
parent 6420fb1252
commit 096ecf3113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.