Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable Markdown Rendering and Image Support #2786

Merged
merged 9 commits into from
Feb 5, 2025

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Feb 4, 2025

This PR introduces a new markdown::Viewer trait that can be leveraged to customize the default appearance of the markdown module.

Additionally, it introduces support for parsing Markdown images. Images are by default rendered using their alternative text as fallback. The burden of loading images and displaying them falls on the user; which can be performed by leveraging the new Viewer trait.

The markdown example has been updated to showcase an approach for downloading images in the background and animating them on display:

markdown-images.mp4

@hecrj hecrj added this to the 0.14 milestone Feb 4, 2025
@hecrj hecrj merged commit 4bbb5cb into master Feb 5, 2025
30 checks passed
@hecrj hecrj deleted the customizable-markdown branch February 5, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant