fancyboxmd-1.1.0
توضیحات
Extension for python-markdown that adds markdown syntax for !![image.jpg] for fancybox tag.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fancyboxmd-1.1.0 |
| نام | fancyboxmd |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matthias Kuhn |
| ایمیل نویسنده | matthias@opengis.ch |
| آدرس صفحه اصلی | https://github.com/opengisch/fancyboxmd.git |
| آدرس اینترنتی | https://pypi.org/project/fancyboxmd/ |
| مجوز | MIT |
# Fancybox markdown extension
This markdown extension creates [fancybox images](http://fancybox.net/).
### Markdown
```md
!
```
### HTML
```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
```yml
markdown_extensions:
- fancyboxmd
```
Enable fancybox in mkdocs.yml
```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`.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0 | markdown |
نحوه نصب
نصب پکیج whl fancyboxmd-1.1.0:
pip install fancyboxmd-1.1.0.whl
نصب پکیج tar.gz fancyboxmd-1.1.0:
pip install fancyboxmd-1.1.0.tar.gz