Split editor/preview for .md and .markdown files. Installs as a user plugin dylib.
Plugin structure, required files, and implementation contracts are documented in
fizzy docs/PLUGINS.md
(§2 — Anatomy of a plugin).
markdown/
build.zig / build.zig.zon
root.zig # dylib entry — copied from fizzy `src/plugins/root.zig` (one exportEntry call)
src/
plugin.zig # register(host) + document vtable; owns its State
State.zig, … # feature code
The host injects the allocator + *Host into the SDK, so plugin code reads them via
sdk.allocator() / sdk.host() — there is no Globals.zig to write.
cd ~/dev/fizzyedit/markdown
zig build
zig build install --prefix ~/.config/fizzy/plugins/markdownOn macOS:
zig build install --prefix "$HOME/Library/Application Support/fizzy/plugins/markdown"Requires a sibling fizzy checkout at ../../fizzy (PR #186).
export FIZZY_PLUGIN_PATH="$PWD/zig-out/plugin.dylib"Then run Fizzy from the matching fizzy revision.