Skip to content

Commit

Permalink
fixtures: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ARYPROGRAMMER committed Dec 21, 2024
1 parent 2f7280b commit 99b66df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
decreaseIndent, increaseIndent,
insertHorizontalRule,
toggleBolded, toggleCode,
toggleHeaderLevel, toggleItalicized,toggleStrikethrough,
toggleHeaderLevel, toggleItalicized, toggleStrikethrough,
toggleList, toggleMath,
} from '../markdown/markdownCommands';
import duplicateLine from './duplicateLine';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const computeSelectionFormatting = (state: EditorState, globalSpellcheck: boolea
case 'BulletList':
formatting.inUnorderedList = true;
break;
case 'StrikeThrough': // Add this case
case 'StrikeThrough': // Add this case
formatting.strikethrough = true;
break;
case 'OrderedList':
Expand Down
14 changes: 7 additions & 7 deletions packages/editor/CodeMirror/markdown/markdownCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export const toggleBolded: Command = (view: EditorView): boolean => {
};

export const toggleStrikethrough: Command = (view: EditorView): boolean => {
const spec = RegionSpec.of({
template: '~~',
nodeName: 'StrikeThrough'
});
const changes = toggleInlineFormatGlobally(view.state, spec);
view.dispatch(changes);
return true;
const spec = RegionSpec.of({
template: '~~',
nodeName: 'StrikeThrough',
});
const changes = toggleInlineFormatGlobally(view.state, spec);
view.dispatch(changes);
return true;
};

export const toggleItalicized: Command = (view: EditorView): boolean => {
Expand Down

0 comments on commit 99b66df

Please sign in to comment.