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