Skip to content

Commit

Permalink
enable auto line breaks for markdown preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-wan committed Jan 20, 2019
1 parent 23d9031 commit cc974a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/trello/TrelloUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ export class TrelloUtils {

this.getCredentials();
this.getFavoriteList();
this.setMarkdownPreviewBreaks();
}

setMarkdownPreviewBreaks(): void {
try {
const config = vscode.workspace.getConfiguration();
config.update("markdown.preview.breaks", true, true);
} catch (error) {
console.error(error);
}
}

isCredentialsProvided(): boolean {
Expand Down

0 comments on commit cc974a4

Please sign in to comment.