npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

markdownlint-rule-extended-ascii

v0.1.0

Published

A markdownlint rule that allows only extended ASCII characters

Downloads

16,088

Readme

markdownlint-rule-extended-ascii

A markdownlint rule that allows only extended ASCII characters

Overview

This rule for the Node.js markdownlint library (and its associated tools) allows only extended ASCII characters in Markdown content. Specifically, it reports violations for characters that are not part of the ISO/IEC 8859-1 character set (a.k.a. "ISO Latin 1", a.k.a. Unicode Basic Latin plus Latin-1 Supplement).

Informally, this extension limits Markdown content to just the printable character codes less than 256. In other words, the standard 8-bit "western" character set from the early days of computing. While this is too restrictive to be practical for many purposes, it is all that's needed for basic English text as found in most README files, documentation, source code, and so on.

This rule will not be interesting to some people because it blocks the use of emoji as well as characters commonly used across Asia. However, it meaningfully prevents the accidental use of so-called smart-quotes, inconsistent em-dashes, ambiguous full-width characters, and the like.

To restrict things further and limit Markdown content to just the printable character codes less than 128 (i.e., plain ASCII), set the rule's ascii-only parameter to true.

Use

Install

npm install markdownlint-rule-extended-ascii --save-dev

Configure

If using markdownlint-cli:

markdownlint --rules markdownlint-rule-extended-ascii *.md

If using markdownlint-cli2 and a .markdownlint-cli2.jsonc configuration file:

{
    "customRules": [
        "markdownlint-rule-extended-ascii"
    ]
}

If using markdownlint-cli2 and a .markdownlint-cli2.yaml configuration file:

customRules:
    - markdownlint-rule-extended-ascii

If using the markdownlint extension for VS Code:

See the markdownlint-cli2 examples above or refer to the extension documentation

Customize

If using a JSON markdownlint configuration object to set the ascii-only parameter:

{
    "extended-ascii": {
        "ascii-only": true
    },

    "some-other-rule": false
}

If using YAML:

extended-ascii:
    ascii-only: true

some-other-rule: false