JSPM

  • Created
  • Published
  • Downloads 72150
  • Score
    100M100P100Q160618F
  • License MIT

Wasm buffer for dprint-plugin-markdown.

Package Exports

  • @dprint/markdown
  • @dprint/markdown/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dprint/markdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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 { getBuffer } from "@dprint/markdown";

const formatter = createFromBuffer(getBuffer());

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