patruusbarba_ObsidianSpoile.../package.json
root 449f050f69 Implement spoiler plugin: ribbon button to wrap/unwrap selection
Adds an Obsidian plugin that places a button on the left ribbon. Selecting
text and pressing it wraps the selection in a collapsible `> [!spoiler]-`
callout; pressing it on an existing spoiler unwraps it back to plain text.
Also exposed as the "Toggle spoiler on selection" command.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 19:42:52 +00:00

27 lines
705 B
JSON

{
"name": "obsidian-spoiler-plugin",
"version": "1.0.0",
"description": "Wrap selected text in a collapsible spoiler callout, or unwrap an existing spoiler, from a ribbon button.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [
"obsidian",
"plugin",
"spoiler",
"callout"
],
"author": "PatruusBarba",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"builtin-modules": "3.3.0",
"esbuild": "0.17.3",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
}
}