mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
feat: add typographer option for markdown preview (#119641)
Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
bfe889d3b9
commit
30ccdf6b6c
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user