@dualmark/converters
v0.5.2
Published
12 production-tested markdown converter factories (blog, case-study, changelog, compare, docs, feature, glossary, legal, pricing, pseo, tool, video) for the Dualmark AEO framework.
Maintainers
Readme
@dualmark/converters
Production-tested markdown converter factories for the Dualmark AEO framework.
Install
bun add @dualmark/converters @dualmark/coreAvailable converters
| Factory | Domain |
|---|---|
| blogConverter | Blog posts |
| caseStudyConverter | Case studies (with stats + customer quote) |
| changelogConverter | Release notes (Keep-a-Changelog grouping) |
| compareConverter | Comparison pages (us vs. competitor table) |
| docsConverter | Documentation pages |
| featureConverter | Feature/product pages with siblings, FAQ, problem/solution |
| glossaryConverter | Glossary terms (with learn-more + canonical-blog) |
| legalConverter | Legal pages |
| pricingConverter | Pricing tables with tier highlights and CTAs |
| pseoConverter | Programmatic SEO pages with facts + related-link groups |
| toolConverter | Standalone tools |
| videoConverter | Video pages |
Usage
import { blogConverter } from "@dualmark/converters";
const convert = blogConverter({
siteUrl: "https://example.com",
basePath: "/blog",
brandFooter: "## About Acme\n\nWe build widgets.",
});
const md = convert({
id: "first-post",
data: { title: "Hello", publishedDate: new Date(), author: "Alice" },
body: "Long-form content.",
});Each factory takes a config object and returns a (entry) => string converter. Pass them to @dualmark/astro collection config or call directly from your own framework.
License
Apache 2.0
