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.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file fancyboxmd-1.1.0.tar.gz
.
File metadata
- Download URL: fancyboxmd-1.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9a7cb401bce8ad63fb46da29abd3c1cff5948d9af87c461b95dd9760891d450 |
|
MD5 | d37258daac091c1101a35cd34e26ab17 |
|
BLAKE2b-256 | 999350cefeb483f87f695fcf15a195438779599ea69375f1ab12ec1f6d0c4b53 |
File details
Details for the file fancyboxmd-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: fancyboxmd-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04577b7b6741be944e502a5721bd858c56635c639978c0a7de58c98b0556f52e |
|
MD5 | 1ce9fb8fad45f0419cd03a771f9e2276 |
|
BLAKE2b-256 | 2c35e0dd45bdcd3e5b898e94dc0c344d33dcba1a6d0530806e3a80c0a6141dc1 |