mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
fix lint error
This commit is contained in:
parent
35880251cd
commit
0eba7b48b5
@ -48,10 +48,10 @@ export default class Heading extends Node {
|
||||
|
||||
inputRules({ type }) {
|
||||
return this.options.levels.map(level => textblockTypeInputRule(
|
||||
new RegExp(`^(#{1,${level}})\\s$`),
|
||||
type,
|
||||
match => ({ level }),
|
||||
))
|
||||
new RegExp(`^(#{1,${level}})\\s$`),
|
||||
type,
|
||||
() => ({ level }),
|
||||
))
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user