feat: add defaultLanguage option to CodeBlockLowlight extension, fix #2121

This commit is contained in:
Philipp Kühn
2021-11-05 14:00:44 +01:00
parent b5b9363b49
commit 0f94bcd591
3 changed files with 35 additions and 5 deletions

View File

@@ -44,6 +44,17 @@ CodeBlockLowlight.configure({
})
```
### defaultLanguage
Define a default language instead of the automatic detection of lowlight.
Default: `null`
```js
CodeBlockLowlight.configure({
defaultLanguage: 'plaintext',
})
```
## Commands
### setCodeBlock()