Skip to content

A GAWK script to move from Admonitions to Callouts in an Obsidian Vault

Notifications You must be signed in to change notification settings

SelrahcD/obsidian-admonition-to-callout-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Obsidian Admonition to Callout

An easy way to move from the Admonition plug-in to the core Callout functionality.

This is an GAWK script that make the most basic move of tranforming

```ad-check
A check on one line

and on some other lines as well
ending with an extra space

` ``

into

> [!check]
> A check on one line
>
> and on some other lines as well
> ending with an extra space
>

Usage

OIFS="$IFS"
IFS=$'\n'
for FILE in `find {YOU_OBSIDIAN_VAULT_DIR} -name '*.md'`; do gawk -i inplace -f admonition-to-callout.awk $FILE; done
IFS="$OIFS"

Run test

Use the ./test.sh command to run the tests.

About

A GAWK script to move from Admonitions to Callouts in an Obsidian Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published