Skip to content

Open source · Beta

Math, research, and explanations that come alive.

Write in Markdown. Publish a readable article, add a working experiment, and take the same document to a research manuscript.

The example is compiled by Publisle.

Markdown → published article

Small signals, clear results

The transform in Equation 1 turns samples into a spectrum.

Xk=∑n=0N−1xne−2πikn/NX_k=\sum_{n=0}^{N-1} x_n e^{-2\pi i kn/N}(1)
Frequency binMagnitude
24
64
Eight frequency bins with magnitude four at bins two and six
Figure 1.

A signal becomes two clear peaks.

See the Markdown
## Small signals, clear results

The transform in Equation :ref[eq\:signal] turns samples into a spectrum.

:::equation{label="eq:signal"}
$$
X_k=\sum_{n=0}^{N-1} x_n e^{-2\pi i kn/N}
$$
:::

| Frequency bin | Magnitude |
| --- | --- |
| 2 | 4 |
| 6 | 4 |

::::figure{src="/fft-spectrum.svg" variant-dark="/fft-spectrum-dark.svg" label="fig:spectrum" alt="Eight frequency bins with magnitude four at bins two and six"}
:::caption
A signal becomes two clear peaks.
:::
::::

From a readable page to a working idea.

Readers get the article first. The experiment starts when they choose to explore. Your content stays readable without JavaScript.

For scholarly work, the same structured content carries its equations, references, figures, and bibliography into print.

An explanation you can explore

Eight samples. Three butterfly stages.

Follow the same signal from time to frequency. Each step combines pairs of samples; the result is a spectrum with energy in just two bins.

The output spectrum has magnitude four in bins two and six, and zero in the other bins.

Measured performance

Put the work in the build. Keep the reader lean.

Methodology and results →

Publisle compiles the document before it reaches your reader. Here is the same math-heavy document through popular publishing tools. Reader delivery is measured separately, with static hosts and default documentation themes identified.

20 displayed equations · warm compile
11.3 ms
Static publication JavaScript
0 B
Installed Core CLI + dependencies
10.8 MiB
30 recorded samples per compiler after five warmups. Compilation uses twenty displayed equations plus inline math; reader JavaScript uses the separate prose/code article.
ToolMath compilation · medianReader JSInstalled tools
PublisleMinimal static HTML host, one article11.29 msHTML · warm process0 B10.8 MiB
MDXMinimal static HTML host, one article46.35 msHTML · warm process0 B13.8 MiB
VitePressDefault documentation theme, one article60.22 msHTML · warm process56.8 KiB144.2 MiB
DocusaurusDefault documentation theme, one article42.94 msMDX module · warm process171.2 KiB163.3 MiB
PandocMinimal static HTML host, one article24.66 msHTML · fresh process0 B157.8 MiB

MDX and Pandoc can also publish static HTML without reader JavaScript. Docusaurus compilation here produces a module; its default site theme and VitePress include navigation and framework code. JavaScript compilers are warm; Pandoc includes process startup. Prose and large-document results are in the full report.

One document, more ways to publish

Math belongs in the article

Build-time equations, numbered references, captioned figures, and tables. Real text and MathML, with a static reading experience.

Make the explanation interactive

Give readers a working experiment. Load each interactive island when it is needed, with an authored explanation available before activation.

Take the same work to publication

Export a research manuscript to LaTeX, JATS, or PDF, with IEEE, ACM, Elsevier, and Springer starter templates.

Quickstart

Install the CLI and compile a document into a static reader page:

npm install -g @publisle/cli
publisle validate article.md
publisle build article.md --out dist/

Journal exports (PDF, LaTeX, JATS) live in the optional research profile: npm install -g @publisle/cli-research. See the journal export guide.

Or compile in-process with the Astro adapter:

import { publisleLoader } from "@publisle/adapter-astro";

export const collections = {
  articles: defineCollection({
    loader: publisleLoader(
      { local: "./article.json" },
      { registry: createRegistry(coreBlockDefinitions) },
    ),
  }),
};

Published packages

Independently versioned under the @publisle npm scope. Core adopters never install research tooling.