Extension for python-markdown that adds markdown syntax for !![image.jpg] for fancybox tag.
Project description
Fancybox markdown extension
This markdown extension creates fancybox images.
Markdown
!![Title](image.png "Description")
HTML
<figure>
<a data-caption="Description" data-fancybox="gallery" href="image.png">
<img alt="Title" src="image.png" title="Title" width="600px" />
</a>
<figcaption>
Description
</figcaption>
</figure>
Using it with mkdocs
Enable it in mkdocs.yml
markdown_extensions:
- fancyboxmd
Enable fancybox in mkdocs.yml
# Css
extra_css:
- https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css
# Extra javascript
extra_javascript:
- https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js
- https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js
Configuration
It supports one configuration option preview_width
which defaults to 600px
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fancyboxmd-1.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for fancyboxmd-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea3b14cfb48d9e29444051f7c90ed90bf074eb4355ced11d0344bed4f0073cb |
|
MD5 | 24a19dfdfa6e1602e40a487f006e4aa7 |
|
BLAKE2b-256 | 5f9f2aa4ee3b69250a8e8d1755bda3f6113cfa7ae4921b32f058e7004f5f2fec |