Repository navigation
Contributing and Development
src/ TypeScript source, templates, filters, CSS, CSL, themes
lib/ Compiled package output
leafmark-vscode/ VS Code extension
wiki/ GitHub Wiki clone
package.json Package scripts and dependencies
git clone https://github.com/DDDASHXD/leafmark.git
cd leafmark
pnpm install
pnpm typecheck
pnpm buildUseful scripts:
| Script | Purpose |
|---|---|
pnpm typecheck |
TypeScript validation without emitting files. |
pnpm build |
Compile src/ into lib/. |
pnpm leafmark -- ... |
Run the source CLI through tsx. |
pnpm dev -- ... |
Equivalent source entry point for development. |
Use a small project fixture outside committed output or the ignored project/ theme fixture. Exercise only the affected formats and preserve intermediate files when debugging:
pnpm leafmark -- ./project --keep-build-files --htmlBefore submitting changes:
pnpm typecheck
pnpm build
git diff --checkDo not commit generated document output unless it is an intentional fixture. Keep lib/ synchronized because it is the published CLI entry point.
pnpm leafmark -- theme init ./my-theme
cd my-theme
pnpx @skxv/leafmark ./project --htmlTheme repositories should keep distributable assets under .leafmark/ and expose .leafmark/theme.json at the repository root. See Themes.
GitHub Wikis are separate Git repositories. This repository keeps a local clone at wiki/. Each .md filename becomes a page; _Sidebar.md and _Footer.md are GitHub Wiki special pages.
Review wiki changes from the nested repository:
git -C wiki status
git -C wiki diff --checkPublishing the wiki is a separate commit and push to leafmark.wiki.git.
Open an issue with a minimal project, exact command, tool versions, and full error output. Remove private document content and credentials before attaching config or build files.
Leafmark documentation · Source repository · npm
Leafmark Wiki
Authoring
Configuration
Building
Help