💄 fix indentations

This commit is contained in:
2026-03-20 19:58:32 +10:00
parent ecf4955fdc
commit d9325173ef

View File

@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react'
import { EditorView, Decoration, type DecorationSet, hoverTooltip, keymap, ViewPlugin, WidgetType, type ViewUpdate } from '@codemirror/view' import { EditorView, Decoration, type DecorationSet, hoverTooltip, keymap, ViewPlugin, WidgetType, type ViewUpdate } from '@codemirror/view'
import { EditorState, EditorSelection, StateField, StateEffect, Annotation, RangeSetBuilder, Compartment, Transaction } from '@codemirror/state' import { EditorState, EditorSelection, StateField, StateEffect, Annotation, RangeSetBuilder, Compartment, Transaction } from '@codemirror/state'
import { markdown } from '@codemirror/lang-markdown' import { markdown } from '@codemirror/lang-markdown'
import { syntaxHighlighting, defaultHighlightStyle, syntaxTree } from '@codemirror/language' import { syntaxHighlighting, defaultHighlightStyle, syntaxTree, indentUnit } from '@codemirror/language'
import { history, defaultKeymap, historyKeymap, invertedEffects, selectAll, indentLess } from '@codemirror/commands' import { history, defaultKeymap, historyKeymap, invertedEffects, selectAll, indentLess } from '@codemirror/commands'
import { search, searchKeymap, openSearchPanel } from '@codemirror/search' import { search, searchKeymap, openSearchPanel } from '@codemirror/search'
import { marked } from 'marked' import { marked } from 'marked'
@@ -647,6 +647,7 @@ export function MarkdownEditor(): JSX.Element {
state: EditorState.create({ state: EditorState.create({
doc: '', doc: '',
extensions: [ extensions: [
indentUnit.of(" "),
history(), history(),
search({ top: true }), search({ top: true }),
keymap.of([ keymap.of([