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

Fancybox support for Markdown #710

Open
Skrillx13 opened this issue Nov 13, 2024 · 2 comments
Open

Fancybox support for Markdown #710

Skrillx13 opened this issue Nov 13, 2024 · 2 comments

Comments

@Skrillx13
Copy link

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

@fancyapps
Copy link
Owner

fancyapps commented Nov 20, 2024

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

@Skrillx13
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants