| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /**
- * Public API of the markdown rule engine.
- *
- * Re-exports everything that was previously exported from markdown-rules.ts
- * so callers (markdown-parser.ts, tests) need no changes.
- */
- // Block rule factories
- export {
- createBlockquoteRule,
- createBlockRules,
- createHeadingRule,
- } from "@/lib/markdown-rules/block-rules"
- // Engine
- export { MarkdownRuleEngine } from "@/lib/markdown-rules/engine"
- // Inline rule factories (consumed by tests and markdown-parser.ts)
- export {
- createBlockRefRule,
- createDelimitedRule,
- createHighlightRule,
- createInlineMathRule,
- createInlineRules,
- createLinkRule,
- createPageRefRule,
- createTagRule,
- findChildByTypeName,
- findChildrenByTypeName,
- } from "@/lib/markdown-rules/inline-rules"
- // Types
- export type {
- BlockDecoration,
- BlockRefDecoration,
- BlockRule,
- CalloutType,
- DecorationRange,
- HighlightDecoration,
- InlineMathDecoration,
- MarkdownRule,
- PageRefDecoration,
- ParseContext,
- ParsedDecorations,
- ParsedToken,
- PropertyInfo,
- TagDecoration,
- TaskState,
- TokenDecoration,
- } from "@/lib/markdown-rules/types"
|