/** * CommonMark and GFM markdown parse, edit and transform schemas for Effect. * * @remarks * The parse surface covers CommonMark 0.31.2 and the GFM dialect (tables, * strikethrough, autolink literals, task-list items and footnotes; `gfm` is * the default dialect): {@link Markdown} (the `parseResult` primitive, the * `parse` Effect and the `MarkdownFromString` codec), {@link MarkdownDocument} * (source, tree, diagnostics, definitions), the mdast-shaped node classes, and * {@link MarkdownDiagnostic}. Frontmatter is captured raw behind a parse * toggle and decoded through the free-standing codecs — `YamlFrontmatter`, * `TomlFrontmatter`, `JsonFrontmatter` — each peering optionally on its * format package. The edit vocabulary (`MarkdownEdit`, `MarkdownRange` and * `MarkdownEdit.applyAll`) carries the cross-package offset-splice parity * contract; `Markdown.stringify` serializes trees canonically (and the free * `stringify`/`stringifyResult` functions, also the whole surface of the * parser-free `@effected/markdown/stringify` entry point, do the same without * keeping the parser reachable), and * `MarkdownFormat` computes marker-normalization and surgical-replacement * edits over it. {@link Mdast} is the remark-ecosystem interop boundary: * projection to plain mdast JSON and checked decoding back; * {@link MarkdownVisitor} walks a tree as events or through skip-aware callbacks; {@link MarkdownTransform} * maps, re-levels and sections trees without source text; and the document's navigation * accessors (headings, sections, links) serve outline and link extraction. * * {@link MarkdownDocument.lineIndex} converts offsets to zero-based * `{ line, character }` and back with the rules every position in the package * uses; `LineIndex` and the position shapes are re-exported from * `@effected/source`, so a consumer needs no second dependency to name them. * * @packageDocumentation */ export { type LineBreaks, LineIndex, type LineIndexOptions, type SourceDiagnostic, type SourceIndex, type SourceLocation, type SourcePosition, type SourceRange, type SourceSpan, } from "@effected/source"; export type { FrontmatterCodec, FrontmatterSchemaError, FrontmatterWriteError } from "./Frontmatter.js"; export { FrontmatterDecodeError, FrontmatterEncodeError, FrontmatterFormatMismatchError, FrontmatterMissingError, FrontmatterMissingReason, FrontmatterValidationError, MarkdownFrontmatter, } from "./Frontmatter.js"; export type { FrontmatterResolveError, FrontmatterSchemaResolver } from "./FrontmatterResolver.js"; export { SchemaDeclaration, SchemaDeclarationByName, SchemaDeclarationByPath, SchemaDeclarationByUrl, SchemaDeclarationInline, SchemaDeclarationInvalidError, SchemaDeclarationMissingError, SchemaNameUnknownError, SchemaResolver, SchemaVersionUnresolvableError, } from "./FrontmatterResolver.js"; export { FrontmatterFenceState, FrontmatterNewline, FrontmatterSource, FrontmatterSourceBlock, FrontmatterSourceSplit, } from "./FrontmatterSource.js"; export { JsonFrontmatter } from "./JsonFrontmatter.js"; export { Markdown, MarkdownDialect, MarkdownParseError, MarkdownParseOptions } from "./Markdown.js"; export { MarkdownDiagnostic, MarkdownParseErrorCode } from "./MarkdownDiagnostic.js"; export type { DocumentHeading, DocumentLink, LinkBearingNode, SectionHeadingMatch, SectionQueryOptions, UnresolvedFootnoteReference, } from "./MarkdownDocument.js"; export { DocumentSection, MarkdownDocument } from "./MarkdownDocument.js"; export type { MarkdownPath, MarkdownSegment } from "./MarkdownEdit.js"; export { MarkdownEdit, MarkdownRange } from "./MarkdownEdit.js"; export type { MarkdownRangeLike } from "./MarkdownFormat.js"; export { CodeBlockStyle, MarkdownFormat, MarkdownFormattingOptions, MarkdownModificationError, MarkdownModificationErrorCode, } from "./MarkdownFormat.js"; export type { MarkdownNodeOfType, MarkdownNodeType } from "./MarkdownNode.js"; export { Blockquote, Break, BreakStyle, BulletChar, Code, Definition, Delete, Emphasis, EmphasisChar, FenceChar, FlowContent, FootnoteDefinition, FootnoteReference, Frontmatter, FrontmatterContent, FrontmatterFormat, Heading, HeadingDepth, HeadingStyle, Html, Image, ImageReference, InlineCode, Link, LinkReference, List, ListContent, ListDelimiter, ListItem, MarkdownNode, MdxFlowExpression, MdxJsxAttribute, MdxJsxAttributeContent, MdxJsxAttributeValueExpression, MdxJsxExpressionAttribute, MdxJsxFlowElement, MdxJsxTextElement, MdxTextExpression, MdxjsEsm, Paragraph, PhrasingContent, Point, Position, ReferenceType, Root, RowContent, Strong, Table, TableAlign, TableCell, TableContent, TableRow, Text, ThematicBreak, ThematicBreakChar, } from "./MarkdownNode.js"; export type { MarkdownStringifyOptions } from "./MarkdownStringify.js"; export { MarkdownStringifyError, stringify, stringifyResult } from "./MarkdownStringify.js"; export type { MarkdownPhrasingOnlyType, MarkdownTransformHandlers, MarkdownTransformResult, SectionSpan, SectionSpanOptions, ShiftHeadingsOptions, } from "./MarkdownTransform.js"; export { MarkdownTransform } from "./MarkdownTransform.js"; export type { MarkdownTraverseVisitor, MarkdownVisitAction, MarkdownVisitContext } from "./MarkdownVisitor.js"; export { MarkdownVisitor, MarkdownVisitorEvent } from "./MarkdownVisitor.js"; export type { MdastNode, MdastToTextOptions } from "./Mdast.js"; export { Mdast, MdastDecodeError } from "./Mdast.js"; export { TomlFrontmatter } from "./TomlFrontmatter.js"; export { YamlFrontmatter } from "./YamlFrontmatter.js";