Skip to content

Markdown Parser #4

@danvega

Description

@danvega

I'm missing something here... I am using the markdown parser

const markdown = prettier.format(`---\n${yaml}\n---\n`, {
  parser: "markdown",
  singleQuote: true,
});

The code compiles but when it runs I get the following error

error: Uncaught Error: Couldn't resolve parser "markdown". Parsers must be explicitly added to the standalone bundle.
        throw new ConfigError$1("Couldn't resolve parser \"".concat(opts.parser, "\". Parsers must be explicitly added to the standalone bundle."));
              ^
    at resolveParser (https://denolib.com/denolib/prettier/vendor/standalone.js:12039:15)
    at normalize$1 (https://denolib.com/denolib/prettier/vendor/standalone.js:12127:18)
    at formatWithCursor (https://denolib.com/denolib/prettier/vendor/standalone.js:15857:14)
    at https://denolib.com/denolib/prettier/vendor/standalone.js:31804:17
    at Object.format (https://denolib.com/denolib/prettier/vendor/standalone.js:31812:14)
    at file:///Users/vega/dev/danvega/danvega-dev/scripts/NewPost.ts:47:27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions