Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow colons inside snippets #51

Open
Oskiator opened this issue Aug 26, 2022 · 1 comment
Open

Allow colons inside snippets #51

Oskiator opened this issue Aug 26, 2022 · 1 comment

Comments

@Oskiator
Copy link

Oskiator commented Aug 26, 2022

Hi,
It would be great to have the possibility to use colons inside a snippets using a specific notation to distinguish them from the fornat 'snippets : result'.

Example

exc : > [!example] Exemple $tb$ $nl$
> 🧑 **Coach** : $tb$ $nl$
> 👸 Coaché.e : $tb$ $nl$

Actual Result

[!example] Exemple
🧑 Coach

Expected Result

[!example] Exemple
🧑 Coach : $tb$
👸 Coaché.e : $tb$

Enjoy your day !
Michaël

@jeansordes
Copy link

If you type : (one space before and after a : symbol) somewhere in the config, the plugin interprets it as a snippet declaration

So, it's not really a fix, but if you type something :$tb$ instead of something : $tb$, it will not mistake it with a snippet declaration

So try this instead (I removed the space after the colons) :

exc : > [!example] Exemple $tb$ $nl$
> 🧑 **Coach** :$tb$ $nl$
> 👸 Coaché.e :$tb$ $nl$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants