mirror of https://github.com/usememos/memos.git
- Rename `resolveTableIndex` useMemo value to `currentTableIndex` in Table.tsx so the name reflects a computed value rather than an action; update all references (callbacks, dependency arrays, JSDoc comment) - Fix `escapeCell` in markdown-table.ts: replace the single-char lookbehind regex `(?<!\\)|` with a character loop that counts consecutive backslashes before each pipe and only inserts an escape when the count is even, mirroring the parser logic and correctly handling sequences like `\\|` - Remove redundant `as ColumnAlignment` type assertion in `createEmptyTable`; TypeScript infers `\"none\"` correctly via contextual typing from the return type - Add regression test for the `\\|` round-trip case in markdown-table.test.ts |
||
|---|---|---|
| .. | ||
| docs | ||
| public | ||
| src | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| vite.config.mts | ||