Skip to main content

Transform Obsidian-style admonitions into MkDocs Material admonitions automatically.

Project description

Obsidian to Material

🇪🇸 Español

Obsidian to Material es una extensión para MkDocs que transforma automáticamente los bloques tipo admonition utilizados en Obsidian.md (específicamente los del plugin Admonition de Jeremy Valentine) en bloques compatibles con el tema Material for MkDocs.

Esto permite reutilizar notas personales escritas en Obsidian directamente en sitios estáticos generados con MkDocs, sin necesidad de scripts intermedios ni cambios manuales.

🧩 ¿Por qué?

Obsidian permite escribir bloques como:

```ad-warning
title: ¡Cuidado!
Este es un mensaje importante.
```

Pero MkDocs Material requiere el formato:

!!! warning "¡Cuidado!"
Este es un mensaje importante.

Esta extensión convierte automáticamente los bloques ad-* en su equivalente !!! durante el proceso de construcción del sitio.

🚀 Instalación

pip install obsidian-to-material

Y en mkdocs.yml:

markdown_extensions:
  - admonition
  - obsidian_admonitions
  - pymdownx.superfences

🙌 Créditos

Este proyecto está inspirado en el excelente trabajo de Jeremy Valentine, autor del plugin Admonition para Obsidian.md.


🇬🇧 English

Obsidian to Material is a MkDocs extension that automatically transforms admonition-style blocks used in Obsidian.md (specifically via the plugin Admonition by Jeremy Valentine) into blocks compatible with Material for MkDocs.

This allows you to reuse notes written in Obsidian directly inside MkDocs documentation, with no manual conversion or intermediate scripts.

🧩 Why?

With Obsidian and its Admonition plugin, you can write:

```ad-warning
title: Warning!
This is an important message.
```

But MkDocs Material expects:

!!! warning "Warning!"
This is an important message.

This extension converts ad-* blocks to proper !!! admonitions during the Markdown processing phase.

🚀 Installation

pip install obsidian-to-material

In your mkdocs.yml:

markdown_extensions:
  - admonition
  - obsidian_admonitions
  - pymdownx.superfences

🙌 Credits

This project is inspired by the great work of Jeremy Valentine, author of the Admonition plugin for Obsidian.md.


📄 License

Distributed under the MIT License.

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

obsidian_to_material-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obsidian_to_material-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file obsidian_to_material-0.1.2.tar.gz.

File metadata

  • Download URL: obsidian_to_material-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for obsidian_to_material-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f8fb2bc68f2c26beab5c983dfecae05c43f0545e1c6aaa9172c397e092cff2c5
MD5 e7ac0b453fd01a3c44ebc1e66deedef6
BLAKE2b-256 00177524d1f75901617a5d5f92e693f27b747d924efa8b64d099299e910b886e

See more details on using hashes here.

File details

Details for the file obsidian_to_material-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for obsidian_to_material-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 facf614188d1c5dd1b9b7819a3acfbf3d2f6681b92d5eeda9192bc5c0acae5ff
MD5 5c4c99657b86a0c381fced5f19dd6ae2
BLAKE2b-256 6f348ba1ca92896f17a59101f71247bb6d7aaaaadd4f4103f7db768527cb3b18

See more details on using hashes here.

Supported by

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