Skip to content

quote()

ts
function quote(nodes): Node;

Defined in: quote.ts:30

Builder-element for a blockquote

Parameters

ParameterTypeDescription
nodes(string | Node)[]Content of this element

Returns

Node

A markdown node

Example

ts
import { define, quote } from "@ogs-gmbh/markdown";

const markdown = define(
  quote(
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"
  )
);

console.assert(
  markdown.toString()
);

See

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-text

Since

1.0.0

Author

Simon Kovtyk