PhrasingContent

import { PhrasingContent } from "jsr:@ende/markdown";

type alias

type PhrasingContent = Text | Emphasis | Strong | InlineCode | Break | Link | Image | Html | Delete | FootnoteReference

Nodes that can appear in paragraphs, headings and other inline content.

Example: Usage

import type { PhrasingContent } from "@ende/markdown/types";
import { assertEquals } from "@ende/assert";

const node: PhrasingContent = { type: "text", value: "Hi" };
assertEquals(node.type, "text");

Source