温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/markdown/RenderCallbacks
点击访问原文链接

interface RenderCallbacks | Bun module | Bun

interface RenderCallbacks | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/markdown/RenderCallbacksPblockquotePcodePcodespanPemphasisPheadingPhrPhtmlPimagePlinkPlistPlistItemPparagraphPstrikethroughPstrongPtablePtbodyPtdPtextPthPtheadPtr

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/markdown/RenderCallbacksPblockquotePcodePcodespanPemphasisPheadingPhrPhtmlPimagePlinkPlistPlistItemPparagraphPstrikethroughPstrongPtablePtbodyPtdPtextPthPtheadPtr

interface

markdown.RenderCallbacksinterface RenderCallbacksblockquote?: (children: string) => undefined | null | string

Blockquote.

code?: (children: string, meta?: CodeBlockMeta) => undefined | null | string

Code block. meta.language is the info-string (e.g. "js"). Only passed for fenced code blocks with a language.

codespan?: (children: string) => undefined | null | string

Inline code (`code`).

emphasis?: (children: string) => undefined | null | string

Emphasis (*text*).

heading?: (children: string, meta: HeadingMeta) => undefined | null | string

Heading (level 1–6). id is set when headings: { ids: true } is enabled.

hr?: (children: string) => undefined | null | string

Horizontal rule.

html?: (children: string) => undefined | null | string

Raw HTML content.

image?: (children: string, meta: ImageMeta) => undefined | null | string

Image. src is the URL, title is the optional title attribute.

link?: (children: string, meta: LinkMeta) => undefined | null | string

Link. href is the URL, title is the optional title attribute.

list?: (children: string, meta: ListMeta) => undefined | null | string

Ordered or unordered list. start is the first item number for ordered lists.

listItem?: (children: string, meta: ListItemMeta) => undefined | null | string

List item. meta always includes {index, depth, ordered}. meta.start is set for ordered lists; meta.checked is set for task list items.

paragraph?: (children: string) => undefined | null | string

Paragraph.

strikethrough?: (children: string) => undefined | null | string

Strikethrough (~~text~~).

strong?: (children: string) => undefined | null | string

Strong emphasis (**text**).

table?: (children: string) => undefined | null | string

Table.

tbody?: (children: string) => undefined | null | string

Table body.

td?: (children: string, meta?: CellMeta) => undefined | null | string

Table data cell. meta.align is set when column alignment is specified.

text?: (text: string) => undefined | null | string

Plain text content.

th?: (children: string, meta?: CellMeta) => undefined | null | string

Table header cell. meta.align is set when column alignment is specified.

thead?: (children: string) => undefined | null | string

Table head.

tr?: (children: string) => undefined | null | string

Table row.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

interface RenderCallbacks | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for interface bun.markdown.RenderCallbacks | Bun