Skip to main content

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.

PyPI GitHub

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

img.png

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

img.png

💡 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>

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-obsidian-support-plugin-0.3.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page