e0a5f57793
Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as a monorepo subdirectory under desktop/. Source only — node_modules, dist, Cargo target and the upstream .git history are excluded. desktop/ keeps its own independent Cargo workspace (desktop/src-tauri with crates/*); it is not part of the backend boosapi crate, so a `cargo check` at the metapi root still compiles only the backend. Build the desktop app from desktop/src-tauri per desktop/README.md. Note: app icons are still placeholder assets pending the final BoosAPI logo. The updater signing keys live outside the repo and are not included.
17 lines
838 B
TypeScript
17 lines
838 B
TypeScript
import { normalizeStandaloneBackslashT } from 'stream-markdown-parser'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('normalizeStandaloneBackslashT - already escaped', () => {
|
|
it('does not double-escape already escaped katex commands', () => {
|
|
expect(normalizeStandaloneBackslashT('\\in')).toBe('\\in')
|
|
expect(normalizeStandaloneBackslashT('text \\alpha more')).toBe('\\text \\alpha more')
|
|
})
|
|
|
|
it('respects options: custom commands and disabling exclamation escape', () => {
|
|
// custom commands only contains 'foo', so 'in' should not be escaped
|
|
expect(normalizeStandaloneBackslashT('in', { commands: ['foo'], escapeExclamation: false })).toBe('in')
|
|
// when escapeExclamation is false, '!' should remain
|
|
expect(normalizeStandaloneBackslashT('a!b', { escapeExclamation: false })).toBe('a!b')
|
|
})
|
|
})
|