はてなのコードブロックで、シンタックスハイライトの記法が対応しているファイルタイプか判定します。また、はてなではコンマ区切りでファイル名を追加することができないので、それも検知します。
Install with npm:
npm install textlint-rule-hatena-markdown-syntax-highlight
Via .textlintrc.json
(Recommended)
{
"rules": {
"hatena-markdown-syntax-highlight": true
}
}
Via CLI
textlint --rule hatena-markdown-syntax-highlight README.md
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
Copyright © ZOZO, Inc.