Text

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

interface

interface Text

Plain text.

Example: Usage

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

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

Properties

type

type: "text"

Node type.

value

value: string

The text, with entities and backslash escapes decoded.

Source