Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean10 committed Sep 13, 2020
2 parents df65a66 + c9b2359 commit ca93e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@
"mac": "cmd+b",
"when": "editorTextFocus && !editorReadonly && editorLangId == markdown"
},
{
"command": "markdown.extension.editing.toggleQuote",
"key": "",
"mac": "",
"when": "editorTextFocus && !editorReadonly && editorLangId == markdown"
},
{
"command": "markdown.extension.editing.toggleItalic",
"key": "ctrl+i",
Expand Down
4 changes: 2 additions & 2 deletions src/formatting.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { commands, env, ExtensionContext, Position, Range, Selection, SnippetString, TextDocument, TextEditor, window, workspace, WorkspaceEdit,EndOfLine } from 'vscode';
import { commands, env, EndOfLine, ExtensionContext, Position, Range, Selection, SnippetString, TextDocument, TextEditor, window, workspace, WorkspaceEdit } from 'vscode';
import { fixMarker } from './listEditing';

export function activate(context: ExtensionContext) {
Expand Down Expand Up @@ -54,7 +54,7 @@ enum QuoteState {
}

function getQuoteState(lineArray: Array<string>): QuoteState {
return lineArray.every((line)=>{ return line.startsWith(">"); }) ? QuoteState.FULLQUOTED : QuoteState.PARTIALQUOTED;
return lineArray.every(line => line.startsWith('>')) ? QuoteState.FULLQUOTED : QuoteState.PARTIALQUOTED;
}

function quoteLine(line: string): string {
Expand Down

0 comments on commit ca93e38

Please sign in to comment.