本页还没有译文
本页 17 段还没译成한국어,下面显示的是英文原文。Octane
还没翻译译自英文(tanstack.com)本页 17 段都还没译
Octane
The @tanstack/markdown/octane entry requires Octane 0.1.12 or newer.
import {
Markdown,
renderBlockOctane,
renderInlineOctane,
renderMarkdownOctane,
type MarkdownOctaneOptions,
type MarkdownProps,
} from '@tanstack/markdown/octane'MarkdownOctaneOptions
Extends RenderOptions with:
interface MarkdownOctaneOptions extends RenderOptions {
components?: Partial<
Record<string, string | ComponentBody<any>>
>
}components replaces an emitted intrinsic or custom element by tag name.
MarkdownProps
Extends MarkdownOctaneOptions with children: MarkdownInput.
Markdown
function Markdown(props: MarkdownProps): ElementDescriptorRenders the document children inside an Octane fragment descriptor.
renderMarkdownOctane
function renderMarkdownOctane(
input: MarkdownInput,
options?: MarkdownOctaneOptions,
): OctaneNode[]Returns rendered Octane nodes without the fragment wrapper.
renderBlockOctane
function renderBlockOctane(
node: BlockNode,
options?: MarkdownOctaneOptions,
key?: string,
): ElementDescriptorRenders one block node. key is available for custom tree composition; normal document rendering supplies deterministic positional keys.
renderInlineOctane
function renderInlineOctane(
node: InlineNode,
options?: MarkdownOctaneOptions,
key?: string,
): OctaneNodeRenders one inline node.
See the Octane Guide for TSRX, component mapping, and SSR usage.
AI 翻译查看英文原文