MkDocs plugin for inlining svg-href img tags
Project description
NOTE: this project is still WIP!
mkdocs-inline-svg-plugin
Table of Contents
Installation
pip install mkdocs-inline-svg-plugin
License
mkdocs-inline-svg-plugin
is distributed under the terms of the MIT license.
Usage
If you want to inline SVGs, that were put in img
tags by the kroki plugin:
mkdocs.yml
:
plugins:
- kroki:
FencePrefix: ''
HttpMethod: 'POST'
DownloadImages: true
- inline-svg:
alt_name: Kroki
Configuration
Config value | What for |
---|---|
alt_name |
default: * , that does not check the img alt property |
include_assets |
default: False , looks for url(..) , downloads the contents to asset_dir and replaces the url |
asset_dir |
default: assets/ |
patch_style |
default: False , this feature is EXPERIMENTAL and not yet finished, needs an additional CSS |
Test
Serve documentation:
hatch run docs:serve
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mkdocs_inline_svg_plugin-0.1.5.tar.gz
.
File metadata
- Download URL: mkdocs_inline_svg_plugin-0.1.5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e04315cdff0d7e112e4329a0fa084044ae0eac0d3f8ba940defabd3fe4fbcff |
|
MD5 | 4d67dedfda1cf6849e8ea90ff92181cc |
|
BLAKE2b-256 | 157fc11f7e9232d9c756f510be4e73aa78dde63eefee911d77d4d155a0380e0c |
File details
Details for the file mkdocs_inline_svg_plugin-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_inline_svg_plugin-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6688c178e8015bbcaadac5d83b942202d7922df83989799c2cbcd73bebbf8a2f |
|
MD5 | 039c7031993ee23587381bf6ecc190aa |
|
BLAKE2b-256 | 75afaf5752463c3c589860c5a019d1640bd4c2a463673f6347ba3ba420de3edf |