Skip to content

textlintのプラグインです。はてなのコードブロックで、シンタックスハイライトの記法が対応しているファイルタイプか判定します。

License

Notifications You must be signed in to change notification settings

st-tech/textlint-rule-hatena-markdown-syntax-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

textlintのプラグインです。はてなのコードブロックで、シンタックスハイライトの記法が対応しているファイルタイプか判定します。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published