zero-mdbundled for local use
Pre-built distribution of the zero-md web component. This
embeds all required CSS and JS libraries (such as Markdown parsing, syntax highlighting, math
formatting and diagramming) into a local bundle, enabling you to render beautiful Markdown documents
without external CDN dependencies.
Download dist.zip from the releases page
and extract it into your project folder.
zero-md-bundled comes in two flavours:
- Standard (
dist/index.js) - RECOMMENDED - Fully Bundled (
dist/bundled.js)
Always use Standard, where code is split into chunks and lazy-loaded. Fully Bundled combines everything into a single standalone file. Loading a ≈6MB JS file on the browser is generally not a good idea unless you know what you're doing.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>zero-md-bundled</title>
<!-- Load the local bundle (no need for `?register`) -->
<script type="module" src="/path/to/dist/index.js"></script>
</head>
<body>
<zero-md src="example.md"></zero-md>
</body>
</html>Note
The zero-md web component is auto-registered so you may omit the ?register query param
directive.
Clone the repository and install dependencies.
git clone https://github.com/zerodevx/zero-md-bundled.git
cd zero-md-bundled
npm iDownload latest CSS assets, then build project.
npm run download-css # Download styles into `downloaded.css`
npm run build # Build project into `dist/`Open a new issue or discussion - I'd be stoked to hear from you!
Standard Github contribution workflow applies.
ISC