mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[visual] Decorate keywords command (#13724)
GitOrigin-RevId: ffd737705098c8a3eb0de5fe8ffbbc656c30d17c
This commit is contained in:
parent
da397e17d4
commit
6270dd0e2a
1 changed files with 12 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue