From 9a1935ac644f55eb2d53e532b9f015b1ec3c40de Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Sun, 15 Nov 2020 13:34:03 -0600 Subject: [PATCH] Add support for Vue shorthand directive syntax --- docs/configuration.md | 16 ++++++++-------- docs/vue.md | 27 +++++++++++++++------------ src/core/render/index.js | 28 +++++++++++++++++++++------- test/e2e/vue.test.js | 6 +++--- 4 files changed, 47 insertions(+), 30 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 0f8678a4..9549ffa5 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -683,17 +683,17 @@ window.$docsify = { ```markdown

- + {{ count }} - +

```

- + {{ count }} - +

@@ -719,14 +719,14 @@ window.$docsify = { ```markdown
- + {{ count }} - +
``` - + {{ count }} - + diff --git a/docs/vue.md b/docs/vue.md index 4f15c0ed..a2a5625e 100644 --- a/docs/vue.md +++ b/docs/vue.md @@ -140,8 +140,12 @@ Good {{ timeOfDay }}! } ``` +```markdown + +``` + -

+

### Lifecycle Hooks @@ -205,17 +209,17 @@ window.$docsify = { ```markdown

- + {{ count }} - +

```

- + {{ count }} - +

@@ -223,9 +227,9 @@ Notice the behavior when multiple global counters are rendered:

- + {{ count }} - +

@@ -251,16 +255,16 @@ window.$docsify = { ```markdown
- + {{ count }} - +
``` - + {{ count }} - + ## Components @@ -331,4 +335,3 @@ Vue content can mounted using a `