InlineCode

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

interface

interface InlineCode

A code span, such as `code`.

Example: Usage

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

const node: InlineCode = { type: "inlineCode", value: "x = 1" };
assertEquals(node.value, "x = 1");

Properties

type

type: "inlineCode"

Node type.

value

value: string

The code, without the backticks.

Source