diff --git a/src/components/Menu/entries.ts b/src/components/Menu/entries.ts index 08e71aaed75..fef46be1f47 100644 --- a/src/components/Menu/entries.ts +++ b/src/components/Menu/entries.ts @@ -26,6 +26,7 @@ import { FormatSize, FormatStrikethrough, FormatUnderline, + Help, Info, LinkIcon, Paperclip, @@ -479,6 +480,15 @@ export const getMenuEntries = (isRichWorkspace: boolean): MenuEntry[] => { return command.toggleCallout({ type: 'error' }) }, }, + { + key: 'callout-question', + label: t('text', 'Question callout'), + isActive: { name: 'callout', attributes: { type: 'question' } }, + icon: Help, + action: (command) => { + return command.toggleCallout({ type: 'question' }) + }, + }, ], priority: 3, }, diff --git a/src/markdownit/callouts.js b/src/markdownit/callouts.js index a6998bfb554..65e0352d0d9 100644 --- a/src/markdownit/callouts.js +++ b/src/markdownit/callouts.js @@ -5,7 +5,7 @@ import container from 'markdown-it-container' -export const typesAvailable = ['info', 'warn', 'error', 'success'] +export const typesAvailable = ['info', 'warn', 'error', 'success', 'question'] const buildRender = (type) => (tokens, idx, options, env, slf) => { const tag = tokens[idx] diff --git a/src/nodes/Callout.vue b/src/nodes/Callout.vue index 4bff7cfe7a4..43aafe573f9 100644 --- a/src/nodes/Callout.vue +++ b/src/nodes/Callout.vue @@ -16,13 +16,14 @@