@dprint/markdown
TypeScript icon, indicating that this package has built-in type declarations

0.16.4 • Public • Published

@dprint/markdown

npm distribution of dprint-plugin-markdown.

Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-markdown WASM file.

Example

import { createFromBuffer } from "@dprint/formatter";
import { getPath } from "@dprint/markdown";
import * as fs from "fs";

const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);

console.log(formatter.formatText("test.md", "#   Some Title    "));

Package Sidebar

Install

npm i @dprint/markdown

Weekly Downloads

10,452

Version

0.16.4

License

MIT

Unpacked Size

3.18 MB

Total Files

5

Last publish

Collaborators

  • dsherret