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 |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| helpers | ||
| hooks | ||
| layouts | ||
| lib | ||
| locales | ||
| pages | ||
| router | ||
| themes | ||
| types | ||
| utils | ||
| App.tsx | ||
| auth-state.ts | ||
| connect.ts | ||
| i18n.ts | ||
| index.css | ||
| main.tsx | ||