ui
ui copied to clipboard
Fancybox support for Markdown
Is your feature request related to a problem? Please describe.
I'm attempting to build a website with Markdown and FastAPI. However, I have to manually declare images in html, and it just looks really out-of-place amidst all the markdown.
Additionally, the images don't fit well with the styling. I have to declare the height and width attributes myself, and it would just be more helpful to have proper support for markdown.
Describe the solution you'd like
Perhaps an extension for markdown would be nice. I am currently using Python Markdown, as my project is written in Python. Would be nice to have some python web framework support.
Describe alternatives you've considered
No response
Additional context
No response
Hi.
I can't imagine what you mean by "Fancybox support". How exactly do you think it would work?
Note that you don't necessarily have to use Fancybox.bind() on links, you can create your own click handler and then use the API to start Fancybox, for example:
Fancybox.show(
[{
src : 'https://placehold.co/1600x800',
type: "image"
}]);
Hi.
I can't imagine what you mean by "Fancybox support". How exactly do you think it would work?
Note that you don't necessarily have to use
Fancybox.bind()on links, you can create your own click handler and then use the API to start Fancybox, for example:Fancybox.show( [{ src : 'https://placehold.co/1600x800', type: "image" }]);
Hi. For the "Fancybox Support" I was talking about, I was thinking about integrating Fancybox with Markdown. For example,

This could work. Also thanks for mentioning that you can create your own click handler, I will look into it.