Regex to fix nested callout #185
Mara-Li
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The callout plugin handle the nested callout a little different from the Callout in Obsidian.
In fact:
Won't be nested, and will be transformed as a quote. This is an intended behavior, as sometimes you want to cite somethings in callout.
Insted, you need to write nested like that:
Aka, you need to remove the space between the two
>
.By default (Reason unknow), Obsidian will add a space between the two
>
. So, I made a linter regex to fix that. As I run the linter each time I save withCTRL + S
It always fixes the nested callout without I'm even noticing.Here is the regex :
/^(>+)\s*(\w+)/gm
⇒$1 $2
How to use Linter Regex ?
Beta Was this translation helpful? Give feedback.
All reactions