TNMSOP

by TrueNine
5
4
3
2
1
Score: 50/100

Description

TNMSOP for Obsidian

Reviews

No reviews yet.

Stats

0
stars
33
downloads
0
forks
20
days
10
days
20
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
10
commits

Latest Version

20 days ago

Changelog

TNMSOP safely renders prompt-focused MDX files as Markdown in Obsidian without evaluating JavaScript.

README file from

Github

TNMSOP

TNMSOP safely opens prompt-focused .mdx files as native Markdown notes in Obsidian. It compiles a static subset in reading view without evaluating JavaScript or writing derived files into the vault.

Features

  • Native .mdx file discovery, editing, links, and reading view
  • Static expressions resolved from plugin scope, frontmatter, and static exports
  • <Md> and <Md.Line> conditional prompt blocks
  • Vault-level preview toggle with a desktop status icon and a cross-platform command
  • Fail-open rendering for unsupported or invalid MDX

Install

After the initial directory review, install TNMSOP from Settings > Community plugins > Browse in Obsidian.

For a manual installation, download main.js, manifest.json, and styles.css from the GitHub Release whose tag exactly matches the plugin version. Place them in:

<vault>/.obsidian/plugins/tnmsop/

Reload Obsidian, enable community plugins, and enable TNMSOP. Beta installations can use BRAT with TrueNine/croessweave-obsidian-plugin.

Use

Open an .mdx file as a normal note and switch to reading view to see the compiled preview. Use Settings > TNMSOP to toggle compiled previews and define a JSON object containing preview variables. The command palette also provides Toggle compiled prompt preview.

Safe Preview Scope

File YAML frontmatter overrides plugin scope, and static exports override frontmatter. Calls, assignments, dynamic imports, and other executable expressions are never run.

Development

bun install --frozen-lockfile
bun test
bun run check:type
bun run lint
bun run build
bun run verify:dist

License

AGPL-3.0-only