mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[visual] Decorate keywords command (#13724)
GitOrigin-RevId: ffd737705098c8a3eb0de5fe8ffbbc656c30d17c
This commit is contained in:
+12
@@ -1029,6 +1029,18 @@ export const atomicDecorations = (options: Options) => {
|
||||
)
|
||||
)
|
||||
}
|
||||
} else if (commandName === '\\keywords') {
|
||||
if (shouldDecorate(state, nodeRef)) {
|
||||
// command name and opening brace
|
||||
decorations.push(
|
||||
...decorateArgumentBraces(
|
||||
new BraceWidget('keywords: '),
|
||||
textArgumentNode,
|
||||
nodeRef.from
|
||||
)
|
||||
)
|
||||
return false
|
||||
}
|
||||
} else if (
|
||||
commandName === '\\footnote' ||
|
||||
commandName === '\\endnote'
|
||||
|
||||
Reference in New Issue
Block a user