
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@galpha-ai/better-markdown
Advanced tools
better-markdown is a Markdown UI middle layer: markdown in, product-grade UI out.
better-markdown is a Markdown UI middle layer: markdown in, product-grade UI out.
v2 keeps the product small:
baseModule() = the default rich-markdown surfacefinanceModule() = chart-heavy finance renderingimport { betterMarkdown, baseModule } from '@galpha-ai/better-markdown';
import { BetterMarkdownRenderer } from '@galpha-ai/better-markdown/react';
const engine = betterMarkdown({
modules: [baseModule()],
});
export function App({ markdown }: { markdown: string }) {
return <BetterMarkdownRenderer engine={engine} content={markdown} />;
}
| Module | Best for |
|---|---|
baseModule() | docs/specs/changelogs/runbooks/AI handoff markdown |
financeModule() | finance dashboards/reports/KPI/chart rendering |
import {
betterMarkdown,
baseModule,
financeModule,
} from '@galpha-ai/better-markdown';
const engine = betterMarkdown({
modules: [baseModule(), financeModule()],
});
Most teams start with baseModule() and add financeModule() only when the markdown truly needs charts.
betterMarkdown() = engine + protocolStart from modules. Reach for plugins and adapters only when you need a custom escape hatch.
| Import path | Purpose |
|---|---|
@galpha-ai/better-markdown | engine + modules-first API |
@galpha-ai/better-markdown/react | React renderers |
@galpha-ai/better-markdown/plugins | chart/code/mermaid/callout plugins |
@galpha-ai/better-markdown/adapters | chart adapters + adapter types |
@galpha-ai/better-markdown/compat | compatibility aliases such as coreModule() |
@galpha-ai/better-markdown/legacy | parser / analyzer / chart helpers |
@galpha-ai/better-markdown/hooks | streaming helpers |
The root package is the canonical API.
If you want a finance-only companion distribution package, it remains available:
@galpha-ai/better-markdown-financeIt exposes the same financeModule() surface, but the recommended docs and examples stay rooted on @galpha-ai/better-markdown.
import type { BetterMarkdownPlugin } from '@galpha-ai/better-markdown/plugins';
const mathPlugin: BetterMarkdownPlugin = {
name: 'math',
match: content => content.includes('$$'),
transform: content => ({ data: { content }, hideOriginal: true }),
};
import { rechartsAdapter } from '@galpha-ai/better-markdown/adapters';
npm install
npm run dev
npm run test
npm run lint
npm run release:npm
npm-package.jsonnpm run pack:check builds, prepares, and smoke-tests the packed artifactnpm run publish:dist only publishes ./distFAQs
better-markdown is a Markdown UI middle layer: markdown in, product-grade UI out.
The npm package @galpha-ai/better-markdown receives a total of 12 weekly downloads. As such, @galpha-ai/better-markdown popularity was classified as not popular.
We found that @galpha-ai/better-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.