1 | # `@mathssyfy/plugin-markdown`
|
2 |
|
3 | ## Description
|
4 |
|
5 | Plugin Markdown for Nuxt or Vue
|
6 |
|
7 | ## Installation
|
8 |
|
9 | ```
|
10 | yarn add @mathssyfy/plugin-markdon
|
11 | ```
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Pour Nuxt:
|
16 |
|
17 | + Dans nuxt.config.js:
|
18 | ```
|
19 | css: [
|
20 | ...
|
21 | '@mathssyfy/plugin-markdown/lib/theme.css',
|
22 | ...
|
23 | ],
|
24 | ```
|
25 | + Dans une vue:
|
26 | ```
|
27 | <script>
|
28 | import Markdown from '@mathssyfy/plugin-markdown'
|
29 | export default {
|
30 | components: {
|
31 | Markdown
|
32 | },
|
33 | }
|
34 | </script>
|
35 | ```
|
36 |
|
37 | ```
|
38 | <markdown>
|
39 | # Un titre
|
40 |
|
41 | blabla
|
42 |
|
43 | ...
|
44 | </markdown>
|
45 | ```
|
46 | Inspiré de Vuepress et de vue-markdown:
|
47 |
|
48 | + [Vuepress](https://vuepress.vuejs.org/)
|
49 | + [vue-markdown](https://github.com/miaolz123/vue-markdown)
|
50 |
|
\ | No newline at end of file |