File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,15 @@ export interface MarkdownOptions extends MarkdownIt.Options {
127
127
allowedAttributes ?: Array < string | RegExp >
128
128
disable ?: boolean
129
129
}
130
+ /**
131
+ * Options for `markdown-it-emoji`
132
+ * @see https://github.com/markdown-it/markdown-it-emoji
133
+ */
134
+ emoji ?: {
135
+ defs ?: Record < string , string >
136
+ enabled ?: string [ ]
137
+ shortcuts ?: Record < string , string | string [ ] >
138
+ }
130
139
/**
131
140
* Options for `@mdit-vue/plugin-frontmatter`
132
141
* @see https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-frontmatter
@@ -211,7 +220,7 @@ export const createMarkdownRenderer = async (
211
220
if ( ! options . attrs ?. disable ) {
212
221
md . use ( attrsPlugin , options . attrs )
213
222
}
214
- md . use ( emojiPlugin )
223
+ md . use ( emojiPlugin , { ... options . emoji } )
215
224
216
225
// mdit-vue plugins
217
226
md . use ( anchorPlugin , {
You can’t perform that action at this time.
0 commit comments