feat: add defaultLanguage option to CodeBlockLowlight extension, fix #2121
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user