Skip to main content
Module

x/deno_markdown/mod.ts>Markdown

Generate markdown files with ease 🦕
Latest
class Markdown
import { Markdown } from "https://deno.land/x/deno_markdown@v0.2/mod.ts";

Create Markdown content and files.

Constructors

new
Markdown()

Properties

content: string

Methods

codeBlock(code: string, language?: string): this

Adds a code block to the content

header(text: string, value: number): this

Adds a markdown header string from 1-6 to the content

horizontalRule(style?: string): this

Adds a markdown horizontal rule

list(
textArray: string[],
listType?: ListTypes,
character?: string | undefined,
subList?: boolean,
): this

Adds an markdown list either ordered or unordered to the content

paragraph(text: string): this

Adds a paragraph of text to the content

quote(text: string, nested?: boolean): this

Adds a markdown quote to the content

table(tableContent: any, options?: any): this

Adds a markdown table to the content

taskList(tasks: string[]): this

Adds a task list to the content

write(
path: string,
fileName: string,
content?: string,
)

Writes the content to a markdown file you do not need to supply a .md