A MkDocs plugin that supports obsidian to mkdocs convert
Project description
mkdocs-obsidian-support-plugin
Plugin for mkdocs-material to convert semantic in documentation from obsidian to mkdocs-material.
pip install mkdocs-obsidian-support-plugin
Usage
Activate the plugin in mkdocs.yml
plugins:
- search
- obsidian-support
features
1. obsidian callout
-> mkdocs admonition
in obsidian,
>[!note] haha
>I am obsidian callout!
>
>I became mkdocs admonition!
rendered as with obsidian callout
in mkdocs-material, this is equivalent to mkdocs-material admonition
!!!note "haha"
I am obsidian callout!
I became mkdocs admonition!
this plugin convert callout
to admonition
based on regex.
finally it rendered as below in mkdocs-material
💡 common types that obsidian callout
and mkdocs-material admonition
support
- note
- abstract
- info
- tip
- success
- question
- warning
- failure
- danger
- bug
- example
- quote
2. obsidian wikilink image
-> mkdocs mdlink image
Obsidian support wikilink
(and this link) which is also known as internal link
.
However mkdocs does not support wikilink
. It uses traditional markdown links
.
wikilink : ![[images/hello.png]]
mdlink : [images/hello.png](images/hello.png)
I think wikilink
is more compact and easy to read. This feature convert wikilink to mdlink.
To use all features in image link conversion, you need markdown_extention md_in_html and obsidian plugin obsidian-image-captions for more flexible displaying image (resizing, caption, alignment ...).
But, for now, it only support only for image (not internal documentation link) in the most simple form as above example.
It does not support ..
- change th image size
wikilink (obsidian native)
![[images/hello.png|300x200]]
mdlink (with markdown extention - attr_list
)
[images/hello.png](images/hello.png) {: style="width:300;height:200px"} // with markdown_plugin - `attr_list`
html (requires markdown_extention md_in_html)
<figure markdown>
![images/hello.png](images/hello.png){ width="300", height="200" }
</figure>
- image caption (requires plugin obsidian-image-captions for obsidian)
wikilink
![[images/hello.png|caption]]
mdlink
[caption][images/hello.png]
- html (requires markdown_extention md_in_html)
<figure markdown>
![caption](images/hello.png){ width="300", height="200" }
<figcaption>caption</figcaption>
</figure>
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
Hashes for mkdocs-obsidian-support-plugin-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26062a1ebb6199941e85997887e49e1fbe7dabef85001da041ca19844d2bc11e |
|
MD5 | 9ebe74d8932f659945473003ebea7ec8 |
|
BLAKE2b-256 | 3f32469e36604196e83d3936fb2581fad8f525b265f03271766dd2d88f9cf5e6 |