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 MarkdownSourceCode
extends TextSourceCodeBase

Markdown Source Code Object

Constructors

new
MarkdownSourceCode(unnamed 0)

Creates a new instance.

Properties

The AST of the source code.

Methods

Returns inline rule configurations along with any problems encountered while parsing the configurations.

Returns an all directive nodes that enable or disable rules along with any problems encountered while parsing the directives.

Returns an array of all inline configuration nodes found in the source code.

Returns the parent of the given node.

Traverse the source code and return the steps that were taken.

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 { MarkdownSourceCode } from "@eslint/markdown";
or

Import directly with a jsr specifier

import { MarkdownSourceCode } 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 { MarkdownSourceCode } 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 { MarkdownSourceCode } from "@eslint/markdown";

Add Package

vlt install jsr:@eslint/markdown

Import symbol

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

Add Package

npx jsr add @eslint/markdown

Import symbol

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

Add Package

bunx jsr add @eslint/markdown

Import symbol

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