mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
refactor: rename toggleDelim() to toggleInlineDelim
This commit is contained in:
parent
0c9a316cca
commit
75ec4828cd
1 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ export class Formatter {
|
|||
let { curTokenMap, curRange, tagStr, precise } = state,
|
||||
firstToken = curTokenMap ? tokens[curTokenMap[0]] : null;
|
||||
if (!precise) {
|
||||
this.toggleDelim();
|
||||
this.toggleInlineDelim();
|
||||
} else if (!firstToken) {
|
||||
this.wrap();
|
||||
} else if (firstToken.from > curRange.from || firstToken.to < curRange.to) {
|
||||
|
|
@ -237,7 +237,7 @@ export class Formatter {
|
|||
}
|
||||
}
|
||||
/** Run only when tidier formatting is switched off. */
|
||||
toggleDelim() {
|
||||
toggleInlineDelim() {
|
||||
let { curRange, delimStr, tagStr } = this.state,
|
||||
delimLen = delimStr.length,
|
||||
selectedStrWithOverlappedEdge = this.doc.sliceString(curRange.from - delimLen, curRange.to + delimLen),
|
||||
|
|
|
|||
Loading…
Reference in a new issue