comark-include
Paste a shared section, or a few lines of real source, into any page with one line, and keep a single copy of each.
Install the plugin with Comark, ideally before standup:
pnpm add comark comark-include:include{src="./partials/install.md"}const bugs = Math.round(ducks * 0.94);
return bugs;:include{src="./partials/ducks.ts" region="estimate"}export function ducksNeeded(bugs: number) {
return Math.ceil(bugs / 0.94);
}:include{src="./partials/ducks.ts" lines="8:10"}---
note: The frontmatter of a partial is dropped.
---
Install the plugin with Comark, ideally before standup:
```sh
pnpm add comark comark-include
```:include{src="./partials/install.md" code}These examples include real files from this site's source. A Markdown file is pasted into the page, and any other file becomes a code block in the language of its extension.