1 parent 80f03f8 commit 1bea6a3Copy full SHA for 1bea6a3
1 file changed
src/App.tsx
@@ -523,13 +523,15 @@ const hideMarkdownPlugin = ViewPlugin.fromClass(
523
to: end,
524
deco: Decoration.replace({
525
widget: new (class extends WidgetType {
526
- eq() { return true }
+ eq() {
527
+ return true
528
+ }
529
toDOM() {
530
const hr = document.createElement('hr')
531
hr.className = 'cm-hr'
532
return hr
533
}
- })()
534
+ })(),
535
}),
536
})
537
@@ -968,6 +970,7 @@ function App() {
968
970
() => [
969
971
EditorView.lineWrapping,
972
Prec.highest(
973
+ // eslint-disable-next-line react-hooks/refs
974
keymap.of([
975
{ key: 'Tab', preventDefault: true, run: insertTab },
976
{ key: 'Shift-Tab', preventDefault: true, run: indentLess },
0 commit comments