{"_id":"@edems-dev/remark-discord-syntax","name":"@edems-dev/remark-discord-syntax","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@edems-dev/remark-discord-syntax","version":"1.0.0","description":"Remark plugin for Discord-style spoiler blocks and subtext lines in MDX","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc","prepack":"npm run build","typecheck":"tsc --noEmit","test":"tsx --test tests/*.test.ts"},"keywords":["remark","remark-plugin","mdx","discord","spoiler","subtext","markdown"],"author":{"name":"Edems-DEV"},"license":"GPL-3.0","dependencies":{"@edems-dev/md-discord-syntax-core":"^1.0.0","unist-util-visit":"^5.0.0"},"devDependencies":{"remark":"^15.0.1"},"_id":"@edems-dev/remark-discord-syntax@1.0.0","gitHead":"a91bc97119534afb2047bca29bcc0ce200e17f77","_nodeVersion":"22.17.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-IeZ9eOMCibC7art/2Gi+1qr/sCyr9HU3oy4JFekmxT6nzEHbAQ9YTdqUfqW8fEWogOcMJ7wKifxlvfWmdfy3Vw==","shasum":"afb41aa3e200d6e22ae31247e4fc331497161993","tarball":"https://registry.npmjs.org/@edems-dev/remark-discord-syntax/-/remark-discord-syntax-1.0.0.tgz","fileCount":5,"unpackedSize":42137,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEalvSdGzfq/kpaX/8Zf6m1AUhfTB8nWxYf/K9XO/i8RAiBEXSb2rbsO/V5fxkiQ+9uU4AgNegEDu1ksUGUa/wBQhA=="}]},"_npmUser":{"name":"edems-dev","email":"edems.dev@gmail.com"},"directories":{},"maintainers":[{"name":"edems-dev","email":"edems.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/remark-discord-syntax_1.0.0_1784648781826_0.893217979230281"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-21T15:46:21.591Z","1.0.0":"2026-07-21T15:46:21.977Z","modified":"2026-07-21T15:46:22.288Z"},"maintainers":[{"name":"edems-dev","email":"edems.dev@gmail.com"}],"description":"Remark plugin for Discord-style spoiler blocks and subtext lines in MDX","keywords":["remark","remark-plugin","mdx","discord","spoiler","subtext","markdown"],"author":{"name":"Edems-DEV"},"license":"GPL-3.0","readme":"# @edems-dev/remark-discord-syntax\n\nRemark plugin transforming Discord-style spoiler blocks (`||spoiler||`) and subtext lines (`-# subtext`) for MDX / Markdown.\n\nPart of the [md-discord-syntax](https://github.com/Edems-DEV/md-discord-syntax) repository.\n\n## Installation\n\n```bash\nnpm install @edems-dev/remark-discord-syntax\n```\n\n## Minimal Usage\n\n```js\nimport { remarkMdDiscordSyntax } from '@edems-dev/remark-discord-syntax'\nimport { remark } from 'remark'\n\nconst file = await remark()\n  .use(remarkMdDiscordSyntax)\n  .process('This is a ||spoiler|| and\\n-# subtext line')\n```\n\n### Next.js (`next.config.mjs`)\n\n```js\nimport createMDX from '@next/mdx'\n\nconst withMDX = createMDX({\n  options: {\n    remarkPlugins: ['@edems-dev/remark-discord-syntax'],\n  },\n})\n\nexport default withMDX({\n  pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],\n})\n```\n\n## License\n\n[GPL-3.0](LICENSE) © Edems-DEV\n\n","readmeFilename":"README.md","_rev":"1-7d0b8d1f3cf2121217f28afabb1dc203"}