1.0.2 • Published 11 months ago
@mpjovanovich/dotmark v1.0.2
dotmark
Style markdown with an unobtrusive CSS-like syntax.
~#intro.fade-in.left
# Welcome
This markdown stays clean and readable.
/~↓ Transforms to ↓
<div id="intro" class="fade-in left">
<h1 id="welcome">Welcome</h1>
<p>This markdown stays clean and readable.</p>
</div>Installation
npm install @mpjovanovich/dotmarkUsage
import { parseDotmark } from "@mpjovanovich/dotmark";
const markdown = `
~#section1.highlight
# Section 1
Some content here
/~
`;
const html = await parseDotmark(markdown);Features
- Add IDs and classes to markdown sections
- GitHub-style heading IDs
- Syntax highlighting for code blocks
- Cleanly formatted HTML output