@traq-flavored-markdown/traq-plugin
v0.1.7
Published
traQ-specific Markdown contracts and HTML rendering.
Readme
traQ plugin
This package provides the traP-specific Markdown extensions used by traQ. The SDK chooses their grammar order and ships the resulting presets, bindings, and application policies.
| Crate | Purpose |
| -------------------------- | ------------------------------------------------------- |
| markdown-trap-contracts | Nodes for stamps, references, spoilers, and blank lines |
| markdown-trap-syntax | traP syntax |
| markdown-trap-text | Plain-text rendering for traP nodes |
| markdown-trap-extraction | Reference extraction |
Add the individual rule plugins to an application's GrammarBuilder or
PresetBuilder. The caller selects their order and decides attachment and citation URL
display and how processing results are combined.
Boundaries
This package uses core and the CommonMark plugin from the same workspace. It does not depend on SDK composition or distribution code.
The TypeScript package exports generated node types and HTML renderers. The Go
module is github.com/traPtitech/traq-flavored-markdown/packages/plugins/traq/go;
its payloads and node factories are generated from these Rust contracts. The
shared AST and Wasm runtime remain in the core Go module.
The SDK processing crate owns the traQ composition and runnable native examples.
