ui icon indicating copy to clipboard operation
ui copied to clipboard

Fancybox support for Markdown

Open ghost opened this issue 1 year ago • 2 comments

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

ghost avatar Nov 13 '24 14:11 ghost

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"
  }]);    

fancyapps avatar Nov 20 '24 08:11 fancyapps

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,

![Image Caption](path/to/image)

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

ghost avatar Nov 20 '24 09:11 ghost