Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.02 KB

File metadata and controls

45 lines (28 loc) · 1.02 KB

textlint-rule-hatena-markdown-syntax-highlight

はてなのコードブロックで、シンタックスハイライトの記法が対応しているファイルタイプか判定します。また、はてなではコンマ区切りでファイル名を追加することができないので、それも検知します。

Install

Install with npm:

npm install textlint-rule-hatena-markdown-syntax-highlight

Usage

Via .textlintrc.json(Recommended)

{
    "rules": {
        "hatena-markdown-syntax-highlight": true
    }
}

Via CLI

textlint --rule hatena-markdown-syntax-highlight README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

Copyright © ZOZO, Inc.