Emphasis
import { Emphasis } from "jsr:@ende/markdown";interface
interface EmphasisEmphasis, such as *this*.
Example: Usage
import type { Emphasis } from "@ende/markdown/types";
import { assertEquals } from "@ende/assert";
const node: Emphasis = { type: "emphasis", children: [{ type: "text", value: "this" }] };
assertEquals(node.children.length, 1);
Properties
type
type: "emphasis"Node type.
children
children: PhrasingContent[]The emphasized content.