Skip to main content

A simple MkDocs plugin that converts Obsidian callout blocks to mkdocs supported Admonitions.

Project description

mkdocs-callouts

Build Status GitHub latest commit PyPi AGPLv3 license Buymeacoffee

A simple plugin that converts Obsidian style callouts and turns them into mkdocs supported Admonitions.

Setup

Install the plugin using pip:

pip install mkdocs-callouts

Activate the plugin in mkdocs.yml, note that the markdown_extensions nl2br, admonition and pymdownx.details are required:

markdown_extensions:
  - nl2br
  - admonition
  - pymdownx.details

plugins:
  - search
  - callouts

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

Usage

mkdocs-callouts converts the following:

> [!INFO] Title
> An information callout from Obsidian
> inspired by the syntax from the Microsoft Docs

and turns it into:

!!! info "Title"
    An admonition block for MkDocs.
    Allowing you to edit your notes
    with confidence using Obsidian.

Foldable blocks are also supported. (> [!INFO]- Foldable closed by default, > [!INFO]+ Foldable open by default)

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-callouts-1.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

mkdocs_callouts-1.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-callouts-1.1.0.tar.gz.

File metadata

  • Download URL: mkdocs-callouts-1.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for mkdocs-callouts-1.1.0.tar.gz
Algorithm Hash digest
SHA256 43a1d0ba2df938c3160910fb2f0f55c1f36af2eabaa5ebdbe30b9234b0ac8ff7
MD5 be387c47157e4ed6bdb1670602e7f39e
BLAKE2b-256 860c326d8e62d7a0f50c75bf7b3595a250efae08405a997a6fbad6f73401b85f

See more details on using hashes here.

File details

Details for the file mkdocs_callouts-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_callouts-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4493157d19cd070fc7d524a2456b0a279a202423c39d06318ddc0d2d3d867678
MD5 7de64bee7d6547e9cc4fa9ef3dbbddf2
BLAKE2b-256 39ebb41cd8d9a77b0c2b745bad27d39d082c95b56830b2fea37783fc482f1334

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