edems-dev_md-discord-syntax/packages/remark
Edems b3294030f8 fix(obsidian): warning+id
- Changed plugin ID to md-discord-syntax across manifests, validation, package metadata, and release instructions.
 - Resolved TypeScript unsafe-value warnings through correct typed ESLint configuration and source typing.
 - Replaced flagged document.createElement usage with Obsidian createEl.
 - Addressed text-decoration compatibility warnings.
 - Optimized spoiler detection to inspect only relevant document lines instead of allocating the full document text.
 - Updated tests for strict type safety and promise handling.
2026-07-21 21:45:33 +02:00
..
src fix(obsidian) 2026-07-21 21:08:20 +02:00
tests fix(obsidian): warning+id 2026-07-21 21:45:33 +02:00
LICENSE fix: prepare packages for npm publishing 2026-07-21 17:28:51 +02:00
package.json ref: finalize package and plugin names 2026-07-21 17:45:00 +02:00
README.md fix(obsidian) 2026-07-21 21:08:20 +02:00
tsconfig.json init(monorepo): core+obsidian,remark 2026-07-21 16:44:48 +02:00

@edems-dev/remark-discord-syntax

Remark plugin transforming Discord-style spoiler blocks (||spoiler||) and subtext lines (-# subtext) for MDX / Markdown.

Part of the md-discord-syntax repository.

Installation

npm install @edems-dev/remark-discord-syntax

Minimal Usage

import { remarkMdDiscordSyntax } from "@edems-dev/remark-discord-syntax";
import { remark } from "remark";

const file = await remark()
  .use(remarkMdDiscordSyntax)
  .process("This is a ||spoiler|| and\n-# subtext line");

Next.js (next.config.mjs)

import createMDX from "@next/mdx";

const withMDX = createMDX({
  options: {
    remarkPlugins: ["@edems-dev/remark-discord-syntax"],
  },
});

export default withMDX({
  pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
});

License

GPL-3.0 © Edems-DEV