Skip to content

Commit 46305fa

Browse files
committed
chore: update readme
1 parent 4a84f83 commit 46305fa

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@ Shortcuts (emoticons): :-) :-( 8-) ;)
4545
</q-markdown>
4646
```
4747

48+
# Imports
49+
QMarkdown now allows you to import markdown files into your Vue files.
50+
51+
```
52+
import markdown from '../markdown/calendar.md'
53+
```
54+
55+
then,
56+
57+
```
58+
data () {
59+
return {
60+
markdown: markdown
61+
}
62+
},
63+
```
64+
65+
and finally:
66+
67+
```
68+
<q-markdown :src="markdown" />
69+
```
70+
4871
# QMarkdown Vue Properties
4972
| Vue&nbsp;Property | Type | Description |
5073
|---|---|---|

0 commit comments

Comments
 (0)