Closed blurfx closed 1 month ago
The Preview
component in frontend/src/components/editor/Preview.tsx
has been modified to enhance the rendering of Markdown content, particularly for mathematical expressions. Inline styles have been added to improve layout, and the logic for rendering code blocks has been refined to support KaTeX math expressions. These changes ensure better handling of inline math patterns and specific class names related to KaTeX, while maintaining the overall structure of the component.
Files | Change Summary |
---|---|
frontend/src/components/editor/Preview.tsx |
Updated MarkdownPreview with new inline styles, improved code block rendering for KaTeX expressions, and adjusted properties for better Markdown handling. |
Preview
component that enhance the rendering of Markdown content.🐇 In the editor's cozy nook,
A preview shines with every look.
Math now dances, styled with grace,
KaTeX twirls in its rightful place.
With padding soft and whitespace neat,
Markdown magic is now complete! ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What this PR does / why we need it:
Adds bottom padding to
MarkdownPreview
componentWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes