Skip to main content
Home

Built and signed on GitHub Actions

Official ESLint Markdown language plugin

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
a week ago (7.5.1)
class MarkdownLanguage

Markdown Language Object

Constructors

new
MarkdownLanguage(unnamed 0?)

Creates a new instance.

Properties

The column number at which the parser starts counting.

Default language options. User-defined options are merged with this object.

The type of file to read.

The line number at which the parser starts counting.

The name of the key that holds the type of the node.

Methods

createSourceCode(
file,
parseResult,
)

Creates a new MarkdownSourceCode object from the given information.

parse(
file,
context,
)

Parses the given file into an AST.

validateLanguageOptions(languageOptions): void

Validates the language options.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";
or

Import directly with a jsr specifier

import { MarkdownLanguage } from "jsr:@eslint/markdown";

Add Package

pnpm i jsr:@eslint/markdown
or (using pnpm 10.8 or older)
pnpm dlx jsr add @eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";

Add Package

yarn add jsr:@eslint/markdown
or (using Yarn 4.8 or older)
yarn dlx jsr add @eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";

Add Package

vlt install jsr:@eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";

Add Package

npx jsr add @eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";

Add Package

bunx jsr add @eslint/markdown

Import symbol

import { MarkdownLanguage } from "@eslint/markdown";