mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(slash): change title of admonitions
This commit is contained in:
parent
43eff08004
commit
6f386f50ff
@ -18,7 +18,8 @@ function buildAdmonitionExtraCommands(): SlashCommandDefinition[] {
|
|||||||
for (const [ keyword, definition ] of Object.entries(ADMONITION_TYPES)) {
|
for (const [ keyword, definition ] of Object.entries(ADMONITION_TYPES)) {
|
||||||
commands.push({
|
commands.push({
|
||||||
id: keyword,
|
id: keyword,
|
||||||
title: `Admonition: ${definition.title}`,
|
title: definition.title,
|
||||||
|
description: "Inserts a new admonition",
|
||||||
icon: admonitionIcons.admonitionIcon,
|
icon: admonitionIcons.admonitionIcon,
|
||||||
execute: (editor: Editor) => editor.execute("admonition", { forceValue: keyword as AdmonitionType })
|
execute: (editor: Editor) => editor.execute("admonition", { forceValue: keyword as AdmonitionType })
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user