fix lint error
This commit is contained in:
@@ -48,10 +48,10 @@ export default class Heading extends Node {
|
|||||||
|
|
||||||
inputRules({ type }) {
|
inputRules({ type }) {
|
||||||
return this.options.levels.map(level => textblockTypeInputRule(
|
return this.options.levels.map(level => textblockTypeInputRule(
|
||||||
new RegExp(`^(#{1,${level}})\\s$`),
|
new RegExp(`^(#{1,${level}})\\s$`),
|
||||||
type,
|
type,
|
||||||
match => ({ level }),
|
() => ({ level }),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user