Add setting to customize notebook markdown preview line height (#13923)

* add md preview line height settings

* remove if condition

* listen for configuration change

* change setting description

* only change line height outside of edit mode

* set minimum line height to 1

* combine ondidchangeconfiguration callbacks
This commit is contained in:
Lucy Zhang
2021-01-08 14:45:26 -08:00
committed by GitHub
parent df51f35be0
commit 569be8eb24
2 changed files with 13 additions and 2 deletions

View File

@@ -231,6 +231,12 @@ configurationRegistry.registerConfiguration({
'default': false,
'description': localize('notebook.saveConnectionName', "(Preview) Save connection name in notebook metadata.")
},
'notebook.markdownPreviewLineHeight': {
'type': 'number',
'default': 1.5,
'minimum': 1,
'description': localize('notebook.markdownPreviewLineHeight', "Controls the line height used in the notebook markdown preview. This number is relative to the font size.")
}
}
});