From 15db792ae2feb5ad43724d01a906ccaa25081c54 Mon Sep 17 00:00:00 2001 From: Andor Kesselman Date: Mon, 28 Nov 2022 17:54:16 +0530 Subject: [PATCH 1/2] escape back tick in snippet --- snippets/code | 8 ++++---- snippets/markdown | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/snippets/code b/snippets/code index 043d719..28acb64 100644 --- a/snippets/code +++ b/snippets/code @@ -3,11 +3,11 @@ # uuid: table # group: d2 # key: trigger-key -# condition: t +# condition: Mon 17:53:05 + # -- -A: |`go +A: |\`go func() { fmt.Println("hello") }() - -` +\` diff --git a/snippets/markdown b/snippets/markdown index aa4f465..dd9c311 100644 --- a/snippets/markdown +++ b/snippets/markdown @@ -5,9 +5,8 @@ # key: trigger-key # condition: t # -- - -a: |` +a: |\` # Header - This text - Next text -` \ No newline at end of file +\` \ No newline at end of file From 74ab2af735a9380e91c341ffd6e1fff17b30481e Mon Sep 17 00:00:00 2001 From: Andor Kesselman Date: Mon, 28 Nov 2022 17:55:36 +0530 Subject: [PATCH 2/2] added README --- snippets/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 snippets/README.md diff --git a/snippets/README.md b/snippets/README.md new file mode 100644 index 0000000..a54ec86 --- /dev/null +++ b/snippets/README.md @@ -0,0 +1,3 @@ +# Snippets + +Yas Snippets for d2. Just add it to your yas snippets d2-mode.