feat: add typographer option for markdown preview (#119641)

Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
William Desgardin
2021-03-29 23:18:59 +02:00
committed by GitHub
parent bfe889d3b9
commit 30ccdf6b6c
3 changed files with 10 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ const UNICODE_NEWLINE_REGEX = /\u2028|\u2029/g;
interface MarkdownItConfig {
readonly breaks: boolean;
readonly linkify: boolean;
readonly typographer: boolean;
}
class TokenCache {
@@ -187,7 +188,8 @@ export class MarkdownEngine {
const config = vscode.workspace.getConfiguration('markdown', resource);
return {
breaks: config.get<boolean>('preview.breaks', false),
linkify: config.get<boolean>('preview.linkify', true)
linkify: config.get<boolean>('preview.linkify', true),
typographer: config.get<boolean>('preview.typographer', false)
};
}