{"_id":"@dada78641/marked-discord","_rev":"6-7fb8eba0a5c8e880f6d3a05d7dae96ce","name":"@dada78641/marked-discord","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@dada78641/marked-discord","version":"1.0.0","license":"MIT","_id":"@dada78641/marked-discord@1.0.0","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"8518586a0720a393998e66af7d3eb0435b2bcc69","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.0.tgz","fileCount":5,"integrity":"sha512-PugvIGbQRLBNAIpJkLkPQakj7SDN2ohBkHRxHYc2O5dMPrNe2QU4rhW8S7ag9nABUYrrvwq9eHwlrinNr3qyEw==","signatures":[{"sig":"MEUCIHXDimJN11NT6E0QttmSoTV6dkN+pMOT3BtlXEDfX6gzAiEA07v4qfNkdEMznlc+n2mzhUcjRQGZmVJH7FvSmP+lisY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40322},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"9bf3929904922e5b5bd552ed1574d527eec6f5cb","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.0_1733005165322_0.7843417923795892","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dada78641/marked-discord","version":"1.0.1","license":"MIT","_id":"@dada78641/marked-discord@1.0.1","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"4b8136e0939274887e5b4012ff392a6ef4b20991","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.1.tgz","fileCount":5,"integrity":"sha512-JQNuPJYIXGqb9DCgw92IplbOGA+p6cwZ2JSQWESwYGC8Sg5X1yF59dJc45NfAFZ6zUoSF1JbtHcD0Y/e5zOFPA==","signatures":[{"sig":"MEQCIAeGiTFFQ1brF2AUT5aY3DQyOIxe854eCewFAQdjNh05AiBzAcVqzo+Uf8yh/ZoY7dieHza8kw36BpS0gXq1uGtHrQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40349},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"09be458b5974b7fcf5ef87f46faedfb07e49b7ab","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.1_1733264909602_0.4801943501418424","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@dada78641/marked-discord","version":"1.0.2","license":"MIT","_id":"@dada78641/marked-discord@1.0.2","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"697064e596e10a9cf2c43c52220c6256f0385698","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.2.tgz","fileCount":5,"integrity":"sha512-gtRAw3e+pGjzUrnEifaQgniJouAjvg+iIk1GydWx9UNN846Qn+YA5uTkEsKOdEcrGhbpf3jSKeQEY4nNAA8qjw==","signatures":[{"sig":"MEQCIAxxM8LqVjqtrQojErYPIGlnemHpOoSfWQ18RV1ikEX9AiBEhgvDgd7+IdQIoNcdpLDEoYS7alQBfHPxOiYRiIGB9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40840},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"211f4bb29551f164f57a0d0d62c1531892404442","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src","test:watch":"TZ=CET vitest watch"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.2_1733311800260_0.1750958561513407","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@dada78641/marked-discord","version":"1.0.3","license":"MIT","_id":"@dada78641/marked-discord@1.0.3","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"2e5da8cb7a416d23d15e39c63206f726fee79345","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.3.tgz","fileCount":5,"integrity":"sha512-xtekkiGhJdu72wyLabVaLXACH4WPvXtxT4fkeR0ypculnt8RDPm7q7LCYkKOheUmXUf9kF0Qy/VRgcUXpPoQ2g==","signatures":[{"sig":"MEYCIQDGR3CG+vf/NyfLR46TwVIZqST00AQnq0EyMEQQ065t0QIhAJLFcDx2ldUwzPjOqz55K5zVHR2QKzu5ObNq1zUfrOtL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40840},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"c8db629b272bffec588693e522d5cdc91a77486d","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src","test:watch":"TZ=CET vitest watch"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.3_1733342887778_0.7117793494008628","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@dada78641/marked-discord","version":"1.0.4","license":"MIT","_id":"@dada78641/marked-discord@1.0.4","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"5ca1dffdd5104197eb78651ed5c1de73a0f29129","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.4.tgz","fileCount":5,"integrity":"sha512-oXfAa9GKKMefHMaVxiuocE2Yt/WiU3X0jUp0D5kk1EAOsZ7cgnCdCjFFXdx+G/0MYKoj8IthNBsMlOQCVqi8SQ==","signatures":[{"sig":"MEUCICt1mtF/3H/aW+bGlbxx5N2FVwYwgX2kCbGmfPvvbzaiAiEA1/NFZWkpmHDKBiI2Pa87HONce04KFQQ9qBSCpBGEqIo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41000},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"951783c1bad3d08d29effae5b4b145cc68683726","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src","test:watch":"TZ=CET vitest watch"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.4_1733343073105_0.09573251223607926","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@dada78641/marked-discord","version":"1.0.5","license":"MIT","_id":"@dada78641/marked-discord@1.0.5","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"homepage":"https://github.com/msikma/marked-discord#readme","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"dist":{"shasum":"fa39cceb4e5e8e3f9920a7082a2cd0fe79a102fb","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.5.tgz","fileCount":5,"integrity":"sha512-Fup+sLZvKfCwgujed//r2n8RHLKApThdsDbDjn/21BpLc+MM9p8vaCAsXTvZ09vFpyV9CT7y/l6KXxe+A/Bxbw==","signatures":[{"sig":"MEQCICOBjfDkXZHbaHU8RaUYzB9R1qW/WKt9ZCfGtfgMywiHAiAasABAOSswVGR1tMZ8ntEVjUqP204OrZjhoePf6O0oPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41011},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"faec07d60fdcf905b3479fcff952ffa391b0e45b","scripts":{"lint":"eslint .","test":"TZ=CET vitest run","build":"tsup","watch":"tsup --watch src","test:watch":"TZ=CET vitest watch"},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"repository":{"url":"git+https://github.com/msikma/marked-discord.git","type":"git"},"_npmVersion":"10.9.0","description":"Markdown parser for Discord content","directories":{},"_nodeVersion":"23.1.0","dependencies":{"marked":"^15.0.2","lodash.keyby":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","eslint":"^9.0.0","vitest":"^2.1.3","typescript":"^5.6.3","typescript-eslint":"^8.0.0","@types/lodash.keyby":"^4.6.9","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-discord_1.0.5_1733609759471_0.5671875391479184","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@dada78641/marked-discord","description":"Markdown parser for Discord content","version":"1.0.6","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsup","watch":"tsup --watch src","test":"TZ=CET vitest run","test:watch":"TZ=CET vitest watch","lint":"eslint ."},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/msikma/marked-discord.git"},"license":"MIT","devDependencies":{"@stylistic/eslint-plugin":"^2.9.0","@types/lodash.keyby":"^4.6.9","eslint":"^9.0.0","tsup":"^8.3.5","typescript":"^5.6.3","typescript-eslint":"^8.0.0","vitest":"^2.1.3"},"dependencies":{"lodash.keyby":"^4.6.0","marked":"^15.0.2"},"_id":"@dada78641/marked-discord@1.0.6","gitHead":"cf1f5e0cc4075e4227ad3b9d2b7669849d2fd459","bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"homepage":"https://github.com/msikma/marked-discord#readme","_nodeVersion":"23.1.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-FC8mTnFru1kNkuqGu0CdFD/fd7tc4x8E3jLF8bQ5PHA8QG3exE9yzVcK9VrRAL2My4BCgiyoVdAivK2ZcOeTZQ==","shasum":"0353ac18c31730de8127af7759e0d700311f1d0b","tarball":"https://registry.npmjs.org/@dada78641/marked-discord/-/marked-discord-1.0.6.tgz","fileCount":5,"unpackedSize":41429,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFY3voLy9Jn8cODy2s+YSEowC5w2zuwpb0jrQlRDJBqgIhAIRWHNLPfsxglnqvCXLhHoH+AV0+ICxXSFCdDQGmtjux"}]},"_npmUser":{"name":"dada78641","email":"dada78641.exe@gmail.com"},"directories":{},"maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/marked-discord_1.0.6_1733756089207_0.8639198848851875"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-30T22:19:25.239Z","modified":"2024-12-09T14:54:49.549Z","1.0.0":"2024-11-30T22:19:25.570Z","1.0.1":"2024-12-03T22:28:29.765Z","1.0.2":"2024-12-04T11:30:00.423Z","1.0.3":"2024-12-04T20:08:08.035Z","1.0.4":"2024-12-04T20:11:13.279Z","1.0.5":"2024-12-07T22:15:59.714Z","1.0.6":"2024-12-09T14:54:49.391Z"},"bugs":{"url":"https://github.com/msikma/marked-discord/issues"},"license":"MIT","homepage":"https://github.com/msikma/marked-discord#readme","repository":{"type":"git","url":"git+https://github.com/msikma/marked-discord.git"},"description":"Markdown parser for Discord content","maintainers":[{"name":"dada78641","email":"dada78641.exe@gmail.com"}],"readme":"[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@dada78641%2Fmarked-discord.svg)](https://badge.fury.io/js/@dada78641%2Fmarked-discord)\n\n# @dada78641/marked-discord\n\nMarkdown parsing library for [Discord](https://discord.com/) flavored Markdown.\n\nThis uses the [Marked](https://github.com/markedjs/marked) library as basis and adds a number of Discord-specific extensions.\n\nThis library **only lexes the input** and **does not** do a full conversion to e.g. HTML or another language.\n\n## Usage\n\nTo parse Markdown content, pass it as string:\n\n```ts\nimport {MarkedDiscord} from '@dada78641/marked-discord'\n\nconst markdownContent = `Here's a Discord emoji: <:zergling:901461081384452187>`\nconst parser = new MarkedDiscord()\nconst res = parser.getMarkdownTokens(markdownContent)\nconsole.log(res)\n```\n\nThis will log the following data:\n\n```ts\n{\n  tokens: [\n    {\n      type: 'paragraph',\n      raw: \"Here's a Discord emoji: <:zergling:901461081384452187>\",\n      text: \"Here's a Discord emoji: <:zergling:901461081384452187>\",\n      tokens: [\n        {\n          type: 'text',\n          raw: \"Here's a Discord emoji: \",\n          text: \"Here's a Discord emoji: \",\n          escaped: false\n        },\n        {\n          type: 'discordServerEmoji',\n          raw: '<:zergling:901461081384452187>',\n          emojiIsAnimated: false,\n          emojiName: 'zergling',\n          emojiId: '901461081384452187',\n        }\n      ]\n    }\n  ],\n  entities: {\n    '901461081384452187': {\n      type: 'Emoji',\n      id: '901461081384452187',\n      isAnimated: false,\n      name: 'zergling'\n    }\n  }\n}\n```\n\n## Features\n\nThis library extends the standard Marked syntax with the following Discord-specific features:\n\n* Channel, role and user mentions\n* @here and @everyone mentions\n* Server emojis (not including Unicode emoji characters)\n* Timestamps (aka. [HammerTime](https://hammertime.cyou/) tags)\n* Spoiler tags\n* Subtext\n\nDiscord flavored Markdown also has the following syntax, which is already parsed by Marked by default:\n\n* Strikethrough\n* Headings\n* Code blocks\n* Blockquotes\n\nNote that there are slight differences between standard Marked syntax and Discord syntax. These differences are minor and should not lead to significant deviations in rendering for regular use cases.\n\n## External links\n\n* [Discord Support - Markdown Text 101](https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline)\n* [Marked Documentation](https://marked.js.org/)\n* [Discord Markdown 201](https://github.com/ParadoxV5/Discord-Markdown)\n* [Discord developer documentation - Message formatting](https://discord.com/developers/docs/reference#message-formatting)\n\n## License\n\nMIT licensed.\n","readmeFilename":"readme.md"}