소스 검색

[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
Masen Furer 11 달 전
부모
커밋
096ecf3113
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/components/markdown/markdown.py

+ 1 - 1
reflex/components/markdown/markdown.py

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