Html

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

interface

interface Html

Raw HTML. As a child of a block container it's an HTML block; inside a paragraph or other phrasing content it's inline HTML.

Example: Usage

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

const node: Html = { type: "html", value: "<br>" };
assertEquals(node.value, "<br>");

Properties

type

type: "html"

Node type.

value

value: string

The HTML source, unchanged.

Source