MCPcopy
hub / github.com/marktext/marktext / IStyleCase

Interface IStyleCase

packages/muya/e2e/tests/blocks/frontmatter.spec.ts:17–24  ·  view source on GitHub ↗

* Frontmatter has four delimiter styles, each round-tripped by * serializeFrontMatter in `state/stateToMarkdown.ts`: * - YAML `---\n…---\n` (lang: 'yaml', style: '-') * - TOML `+++\n…+++\n` (lang: 'toml', style: '+') * - JSON `;;;\n…;;;\n` (lang: 'json', style

Source from the content-addressed store, hash-verified

15 */
16
17interface IStyleCase {
18 label: string;
19 lang: 'yaml' | 'toml' | 'json';
20 style: '-' | '+' | ';' | '{';
21 text: string;
22 expectedStart: string;
23 expectedEnd: string;
24}
25
26const STYLE_CASES: IStyleCase[] = [
27 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected