跳到內容

MdiRuby

本頁內容尚未翻譯。

Defined in: nodejs/packages/mdast-util-mdi/src/types.ts:29

{base|ruby} / {base|r.u.by} — SYNTAX.md §2.

Leaf node: per the spec, ruby content is plain text with no further MDI or CommonMark inline parsing inside {...|...}.

ruby is a single string for group ruby, or an array of per-base-grapheme strings (same length as base’s grapheme cluster count) for split ruby.

  • Node

base: string

Defined in: nodejs/packages/mdast-util-mdi/src/types.ts:31


optional data?: Data

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/unist/index.d.ts:95

Info from the ecosystem.

Node.data


optional position?: Position

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/unist/index.d.ts:103

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

Node.position


ruby: string | string[]

Defined in: nodejs/packages/mdast-util-mdi/src/types.ts:32


type: "mdiRuby"

Defined in: nodejs/packages/mdast-util-mdi/src/types.ts:30

Node type.

Node.type