This commit is contained in:
Philipp Kühn
2020-11-17 22:45:56 +01:00
parent 786c86f4b8
commit 91377be21e
6 changed files with 22 additions and 22 deletions

View File

@@ -36,9 +36,9 @@ const Code = Mark.create({
addCommands() {
return {
/**
* Set a code mark
* Add a code mark
*/
setCode: (): Command => ({ commands }) => {
addCode: (): Command => ({ commands }) => {
return commands.addMark('code')
},
/**
@@ -48,9 +48,9 @@ const Code = Mark.create({
return commands.toggleMark('code')
},
/**
* Unset a code mark
* Remove a code mark
*/
unsetCode: (): Command => ({ commands }) => {
removeCode: (): Command => ({ commands }) => {
return commands.addMark('code')
},
}