{"_id":"@adocweave/textlint-plugin-asciidoc","_rev":"2-2b19f704d306a285fa07ce96449dd032","name":"@adocweave/textlint-plugin-asciidoc","dist-tags":{"latest":"0.54.0"},"versions":{"0.47.0":{"name":"@adocweave/textlint-plugin-asciidoc","version":"0.47.0","keywords":["asciidoc","textlint","textlintplugin"],"license":"MIT OR Apache-2.0","_id":"@adocweave/textlint-plugin-asciidoc@0.47.0","maintainers":[{"name":"keishisando","email":"sando.keishi.sp@alumni.tsukuba.ac.jp"}],"homepage":"https://github.com/KeishiS/adocweave","bugs":{"url":"https://github.com/KeishiS/adocweave/issues"},"dist":{"shasum":"185890966b00b9fa7a3fe97fb824c8a34e81a2f3","tarball":"https://registry.npmjs.org/@adocweave/textlint-plugin-asciidoc/-/textlint-plugin-asciidoc-0.47.0.tgz","fileCount":13,"integrity":"sha512-bg4RWAEpVaC67eaFe78NhkTGVXPvyjq7DthpzwM/1z69hLntcSPq4UGdru/fUdLuDkJ3gT25DSznbcbGFpWvhA==","signatures":[{"sig":"MEQCIBLfpKm7jOsr0ol5wlOlCx9M+sZkTspr2zXgC17Y3myzAiAC0c0M7hBRxUvvyXvnbsIlFA2+2M5tEsH/R2DY0tEjxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1150168},"main":"./index.mjs","type":"module","_from":"file:adocweave-textlint-plugin-asciidoc-0.47.0.tgz","types":"./index.d.mts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./index.d.mts","import":"./index.mjs","default":"./index.mjs"}},"_npmUser":{"name":"keishisando","email":"sando.keishi.sp@alumni.tsukuba.ac.jp"},"_resolved":"/users/c64b20a5-79ae-424d-8c45-8df151e97b7d/Gits/adocweave/adocweave-textlint-plugin-asciidoc-0.47.0.tgz","_integrity":"sha512-bg4RWAEpVaC67eaFe78NhkTGVXPvyjq7DthpzwM/1z69hLntcSPq4UGdru/fUdLuDkJ3gT25DSznbcbGFpWvhA==","repository":{"url":"git+https://github.com/KeishiS/adocweave.git","type":"git","directory":"packages/textlint-plugin-asciidoc"},"_npmVersion":"11.17.0","description":"AsciiDoc Processor Plugin for textlint powered by AdocWeave","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"textlint":"^15.8.0","@textlint/types":"^15.8.0"},"_npmOperationalInternal":{"tmp":"tmp/textlint-plugin-asciidoc_0.47.0_1787513508987_0.38650306463889983","host":"s3://npm-registry-packages-npm-production"}},"0.54.0":{"_id":"@adocweave/textlint-plugin-asciidoc@0.54.0","bugs":{"url":"https://github.com/KeishiS/adocweave/issues"},"dist":{"shasum":"2705ae4abc5486b5ccf0b1da285e86c7fe64b5da","tarball":"https://registry.npmjs.org/@adocweave/textlint-plugin-asciidoc/-/textlint-plugin-asciidoc-0.54.0.tgz","fileCount":14,"integrity":"sha512-heFhiLrCwdoFRBnlBiQIpf/xDXNZd6lt+QdE2zAAym64eBRDlx/+CNaBrdwMmillwHRtPGahJ6bvI5PySLHCYg==","signatures":[{"sig":"MEYCIQDjahTfwksPC/l/RWiDRw1lz+6mYhRqY4i4IfM7fzIv/wIhAOjMT9qt5PsN2B4zUVEUSnIFvUD3l6RphDOSfHVIj5DJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCePgx2jhAimntxubIr5ZDqoUQe+iyxyk1awHT16jNw3wIhAIChLNJDiYtsKsNz5TBjtTEpuFIA3Oh82rMaulxoQ/+5"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@adocweave%2ftextlint-plugin-asciidoc@0.54.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1161346},"main":"./index.mjs","name":"@adocweave/textlint-plugin-asciidoc","type":"module","_from":"file:/home/runner/work/adocweave/adocweave/target/distrib/adocweave-textlint-plugin-asciidoc-0.54.0.tgz","types":"./index.d.mts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./index.d.mts","import":"./index.mjs","default":"./index.mjs"}},"license":"MIT OR Apache-2.0","version":"0.54.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e06b0960-6995-41a0-afdf-75b719ea1f4c"}},"homepage":"https://github.com/KeishiS/adocweave","keywords":["asciidoc","textlint","textlintplugin"],"_resolved":"/home/runner/work/adocweave/adocweave/target/distrib/adocweave-textlint-plugin-asciidoc-0.54.0.tgz","_integrity":"sha512-heFhiLrCwdoFRBnlBiQIpf/xDXNZd6lt+QdE2zAAym64eBRDlx/+CNaBrdwMmillwHRtPGahJ6bvI5PySLHCYg==","repository":{"url":"git+https://github.com/KeishiS/adocweave.git","type":"git","directory":"packages/textlint-plugin-asciidoc"},"_npmVersion":"11.17.0","description":"AsciiDoc Processor Plugin for textlint powered by AdocWeave","directories":{},"maintainers":[{"name":"keishisando","email":"sando.keishi.sp@alumni.tsukuba.ac.jp"}],"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"textlint":"^15.8.0","@textlint/types":"^15.8.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/textlint-plugin-asciidoc_0.54.0_1788117395694_0.8882640706179672"}}},"time":{"created":"2026-08-23T19:31:48.784Z","modified":"2026-08-30T19:16:36.205Z","0.47.0":"2026-08-23T19:31:49.138Z","0.54.0":"2026-08-30T19:16:35.829Z"},"bugs":{"url":"https://github.com/KeishiS/adocweave/issues"},"license":"MIT OR Apache-2.0","homepage":"https://github.com/KeishiS/adocweave","keywords":["asciidoc","textlint","textlintplugin"],"repository":{"url":"git+https://github.com/KeishiS/adocweave.git","type":"git","directory":"packages/textlint-plugin-asciidoc"},"description":"AsciiDoc Processor Plugin for textlint powered by AdocWeave","maintainers":[{"name":"keishisando","email":"sando.keishi.sp@alumni.tsukuba.ac.jp"}],"readme":"# AdocWeave textlint AsciiDoc plugin\n\n`@adocweave/textlint-plugin-asciidoc` は、AsciiDoc文書をAdocWeaveで解析し、textlintが扱うTxtASTへ変換するProcessor Pluginです。Node.js、textlintおよびこのパッケージだけで動作し、Rust、Cargoまたは実行時の追加ダウンロードを必要としません。\n\n## 導入\n\n```console\nnpm install --save-dev textlint @adocweave/textlint-plugin-asciidoc\n```\n\nバージョンを固定する場合は、使用するパッケージの `X.Y.Z` を指定します。このパッケージのバージョンは\nネイティブ実行ファイルやほかのnpmパッケージとは独立しています。\n\n```console\nnpm install --save-dev textlint@15.8.0 \\\n  @adocweave/textlint-plugin-asciidoc@X.Y.Z\n```\n\nプロジェクトへ依存を導入せずに一度だけ試す場合は、`npx` の `--package` でtextlint、Processorおよび規則を一時的に取得します。次の例は日本語技術文書向けの規則で `document.adoc` を検査します。\n\n```console\nnpx --yes \\\n  --package=textlint@15.8.0 \\\n  --package=@adocweave/textlint-plugin-asciidoc@X.Y.Z \\\n  --package=textlint-rule-preset-ja-technical-writing@12.0.2 \\\n  textlint --no-textlintrc \\\n  --plugin @adocweave/asciidoc \\\n  --preset ja-technical-writing \\\n  document.adoc\n```\n\nこの方法では作業ディレクトリへ `package.json`、`package-lock.json` および `node_modules` を作成しません。取得したパッケージはnpmのキャッシュへ保存されます。継続して使う場合は、前述の方法で依存とバージョンをプロジェクトへ記録してください。\n\n## 設定\n\n`.textlintrc.json` では、利用する日本語規則などとは別にProcessorを指定します。\n\n```json\n{\n  \"plugins\": [\"@adocweave/asciidoc\"],\n  \"rules\": {\n    \"your-rule\": true\n  }\n}\n```\n\n## 対応範囲\n\n既定では `.adoc`、`.asciidoc` および `.asc` を扱います。別の拡張子を扱う場合は、先頭に `.` を付けて追加します。\n\n```json\n{\n  \"plugins\": {\n    \"@adocweave/asciidoc\": {\n      \"extensions\": [\".guide\"]\n    }\n  }\n}\n```\n\n見出し、block title、段落、リスト、引用、表、リンク、footnote本文、画像の代替文、iconの代替文またはtitle、audioとvideoのtitleおよびインライン装飾を文章として渡します。TxtASTにはblock title専用の標準nodeがないため、block titleはdepth 1の `Header` としてtitle向け規則の対象にします。\n\nコード、UI macroの表示要素、表示文字列のないURL、数式、属性参照、passおよび未対応構文は `Code` として構造だけを保ち、`Str` を対象とする文章規則から除外します。macroの文章部分に属性参照またはinline記法がある場合も、誤った文字列を渡さないためmacro全体を除外します。titleなどがないmedia macroのファイル名も文章として扱いません。includeは展開せず、入力された一つの物理ファイルだけを解析します。\n\n## 自動修正\n\nこのProcessorは自動修正に対応しません。規則が修正情報を返した場合も削除するため、`textlint --fix` でAsciiDoc文書を書き換えません。検出した問題は元の文書上の行と列へ報告します。\n\n## 使用量の上限\n\n一つの入力は10 MiB、TxtAST planは50 MiB、planのnodeは1,000,000件、`sourceId` は4 KiBを上限とします。同梱WebAssemblyのlinear memoryは256 MiBを上限とし、完成した配布物で上限が埋め込まれていることを検査します。上限を超えた場合は、`code` を持つ `Error` として処理を中止します。配布するtarballは8 MiB、展開後は16 MiBを上限とします。収録ファイルは `package.json` の `files` で指定します。\n\n## 対応環境\n\nNode.js 24.19.0とtextlint 15.8.0を検証対象とします。CIではこの固定した組合せで導入と実行を確認します。WebAssemblyはパッケージへ同梱し、別のAdocWeaveバージョンへ差し替える機能は提供しません。\n\n## ライセンス\n\nMIT OR Apache-2.0\n","readmeFilename":"README.md"}