Repository navigation
Expand file tree
/
Copy pathblocks.ts
More file actions
51 lines (47 loc) · 1.78 KB
/
Copy pathblocks.ts
File metadata and controls
51 lines (47 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* blocks.ts :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dlesieur <dlesieur@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/09/15 00:00:00 by dlesieur #+# #+# */
/* Updated: 2026/09/15 00:00:00 by dlesieur ### ########.fr */
/* */
/* ************************************************************************** */
/**
* Block surface — markdown shortcuts and the engine's own block contract.
*
* Separate from the root entry point because it carries the block vocabulary;
* consumers that only parse or render inline markdown should not pay for it.
* Pure: no React, no DOM.
*/
export {
BLOCK_SHORTCUTS,
detectBlockType,
parseMarkdownToBlocks,
} from "./markdown/shortcuts";
export type { BlockDetection } from "./shortcutsDetect";
export type {
MarkEngineBlock,
MarkEngineBlockType,
MarkEngineHeadingLevel,
} from "./blockContract";
export {
DEFAULT_TABLE_CONFIG,
DEFAULT_TABLE_DATA,
clampTableColumnWidth,
clampTableRowHeight,
createTableBlockFromData,
getDefaultTableConfig,
getTableColumnCount,
normalizeTableData,
resolveTableConfig,
} from "./tableConfig";
export type {
TableBlockConfig,
TableBlockLayoutMode,
TableBlockPadding,
TableBlockSeed,
TableBlockTextAlign,
} from "./tableConfig";