UNPKG

1.88 kBJavaScriptView Raw
1export const propsMakrdown = {
2 watches: {
3 type: Array,
4 default: () => ['source', 'show', 'toc'],
5 },
6 source: {
7 type: String,
8 default: ``,
9 },
10 lineNumbers: {
11 type: Boolean,
12 default: true,
13 },
14 show: {
15 type: Boolean,
16 default: true,
17 },
18 highlight: {
19 type: Boolean,
20 default: true
21 },
22 html: {
23 type: Boolean,
24 default: true,
25 },
26 xhtmlOut: {
27 type: Boolean,
28 default: true,
29 },
30 breaks: {
31 type: Boolean,
32 default: true,
33 },
34 linkify: {
35 type: Boolean,
36 default: true,
37 },
38 emoji: {
39 type: Boolean,
40 default: true,
41 },
42 typographer: {
43 type: Boolean,
44 default: true,
45 },
46 langPrefix: {
47 type: String,
48 default: 'language-',
49 },
50 quotes: {
51 type: String,
52 default: '“”‘’',
53 },
54 tableClass: {
55 type: String,
56 default: 'table',
57 },
58 taskLists: {
59 type: Boolean,
60 default: true
61 },
62 toc: {
63 type: Boolean,
64 default: true,
65 },
66 tocId: {
67 type: String,
68 },
69 tocClass: {
70 type: String,
71 default: 'table-of-contents',
72 },
73 tocFirstLevel: {
74 type: Number,
75 default: 2,
76 },
77 tocLastLevel: {
78 type: Number,
79 },
80 tocAnchorLink: {
81 type: Boolean,
82 default: true,
83 },
84 tocAnchorClass: {
85 type: String,
86 default: 'toc-anchor',
87 },
88 tocAnchorLinkSymbol: {
89 type: String,
90 default: '#',
91 },
92 tocAnchorLinkSpace: {
93 type: Boolean,
94 default: true,
95 },
96 tocAnchorLinkClass: {
97 type: String,
98 default: 'toc-anchor-link',
99 },
100 anchorAttributes: {
101 type: Object,
102 default: () => ({})
103 },
104 prerender: {
105 type: Function,
106 default: (sourceData) => { return sourceData; }
107 },
108 postrender: {
109 type: Function,
110 default: (htmlData) => { return htmlData; }
111 }
112};