You've already forked AstralRinth
forked from didirus/AstralRinth
Monorepo missing features (#1273)
* fix tauri config * fix package patch * regen pnpm lock * use new workflow * New GH actions * Update lockfile * update scripts * Fix build script * Fix missing deps * Fix assets eslint * Update libraries lint * Fix all lint configs * update lockfile * add fmt + clippy fails * Separate App Tauri portion * fix app features * Fix lints * install tauri cli * update lockfile * corepack, fix lints * add store path * fix unused import * Fix tests * Issue templates + port over tauri release * fix actions * fix before build command * Add X86 target * Update build matrix * finalize actions * make debug build smaller * Use debug build to make cache smaller * dummy commit * change proj name * update file name * Use release builds for less space use * Remove rust cache * Readd for app build * add merge queue trigger
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-nocheck
|
||||
|
||||
import { insertNewlineAndIndent } from '@codemirror/commands'
|
||||
@@ -20,7 +21,7 @@ const toggleStrikethrough: Command = ({ state, dispatch }) => {
|
||||
|
||||
const toggleCodeBlock: Command = ({ state, dispatch }) => {
|
||||
const lineBreak = state.lineBreak
|
||||
const codeBlockMark = `${lineBreak }\`\`\`${ lineBreak}`
|
||||
const codeBlockMark = `${lineBreak}\`\`\`${lineBreak}`
|
||||
return toggleAround(state, dispatch, codeBlockMark, codeBlockMark)
|
||||
}
|
||||
|
||||
@@ -87,7 +88,7 @@ type Dispatch = (tr: Transaction) => void
|
||||
const surroundedByText = (
|
||||
state: EditorState,
|
||||
open: string,
|
||||
close: string
|
||||
close: string,
|
||||
): 'inclusive' | 'exclusive' | 'none' => {
|
||||
const { from, to } = state.selection.main
|
||||
|
||||
@@ -113,7 +114,7 @@ const toggleAround = (
|
||||
state: EditorState,
|
||||
dispatch: Dispatch,
|
||||
open: string,
|
||||
close: string
|
||||
close: string,
|
||||
): boolean => {
|
||||
const { from, to } = state.selection.main
|
||||
|
||||
@@ -258,7 +259,7 @@ const insertNewlineContinueMark: Command = (view): boolean => {
|
||||
|
||||
const listMark = lastNode.getChild('ListMark')
|
||||
if (listMark) {
|
||||
cancelPatterns.push(`${state.doc.sliceString(listMark.from, listMark.to) } `)
|
||||
cancelPatterns.push(`${state.doc.sliceString(listMark.from, listMark.to)} `)
|
||||
}
|
||||
|
||||
// Skip if current line matches any of the cancel patterns
|
||||
@@ -340,7 +341,7 @@ const incrementMark = (mark: string): string => {
|
||||
const match = numberedListRegex.exec(mark)
|
||||
if (match) {
|
||||
const number = parseInt(match[1])
|
||||
return `${(number + 1).toString() }.`
|
||||
return `${(number + 1).toString()}.`
|
||||
}
|
||||
return mark
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user