Remark Typograf

Plugin to make your typography better with https://github.com/typograf
Alternatives To Remark Typograf
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Ohmyzsh159,450132 days ago1December 07, 2014616mitShell
🙃 A delightful community-driven (with 2,100+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
Vuetify37,2666,5411,76413 hours ago482September 15, 20221,100mitTypeScript
🐉 Vue Component Framework
Vim Plug30,869
2 months ago126mitVim Script
:hibiscus: Minimalist Vim Plugin Manager
Svgo19,201281,7632,54919 days ago92November 02, 2021283mitJavaScript
⚙️ Node.js tool for optimizing SVG files
.tmux19,096
25 days ago34mit
🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
Asdf17,628
a day ago135mitShell
Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Nnn16,392
7 days ago20July 26, 20221bsd-2-clauseC
n³ The unorthodox terminal file manager
Vconsole15,7065626592 days ago62September 23, 202241otherTypeScript
A lightweight, extendable front-end developer tool for mobile web page.
Oclif8,3623446611 days ago235September 16, 202299mitTypeScript
Node.js Open CLI Framework. Built by Salesforce.
Tiddlywiki57,347431315 hours ago60August 02, 20221,256otherJavaScript
A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Alternatives To Remark Typograf
Select To Compare


Alternative Project Comparisons
Readme

remarkjs-typograf

Plugin for remark to make your typography better with typograf

Example https://mavrin.github.io/remark-typograf/

Install

npm:

npm install @mavrin/remark-typograf remark

Use

Say we have the following file, example.md:

## spread operator `...`

It is test...

```js
function test(...args) {
  return args;
}
```

You probably want to use it on the CLI through a config file:

  …
  "remarkConfig": {
    "plugins": [
      [
        "@mavrin/remark-typograf",
        {
          "locale": ["ru"]
        }
      ]
    ]
  }
…

Or use it on the CLI directly (ru locale will be used as default)

remark -u @mavrin/remark-typograf example.md -o processed-example.md

Or use this on the API:

const fs = require("fs");
const path = require("path");
const remark = require("remark");
const remarkTypograf = require("@mavrin/remark-typograf");

const processed = remark()
  .use(remarkTypograf, { locale: ["en-US"], keywords: [":)"] })
  .processSync(fs.readFileSync(path.resolve(__dirname, "example.md")));

fs.writeFileSync(path.resolve(__dirname, "processed-example.md"), processed);

or with custom typograf:

const fs = require("fs");
const path = require("path");
const remark = require("remark");
const remarkTypograf = require("@mavrin/remark-typograf");
const Typograf = require("typograf");

const processed = remark()
  .use(remarkTypograf, {
    typograf: new Typograf({ locale: ["en-US"] }),
    keywords: [":)"],
    builtIn: false,
  })
  .processSync(fs.readFileSync(path.resolve(__dirname, "example.md")));

fs.writeFileSync(path.resolve(__dirname, "processed-example.md"), processed);

Yields:

## spread operator `...`

It is test…

```js
function test(...args) {
  return args;
}
```

Example source code

Popular Plugin Projects
Popular Command Line Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Cli
Plugin
Markdown