aymericzip/intlayer-skills/intlayer-markdown

Claude Code and agent skill by aymericzip/intlayer-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Declares and renders Markdown / rich text content with Intlayer (md(), .content.md files, MDX components, MarkdownProvider, SSR parsing). Use when the user asks to "add markdown content", "render rich text", "customize markdown components", or "render a markdown string".

Install

npx vskill@latest install aymericzip/intlayer-skills/intlayer-markdown

SKILL.md

Intlayer Markdown

Declaring Markdown Content

typescript
import { file, md, t, type Dictionary } from "intlayer";
const content = {
key: "app",
content: {
// Explicit markdown
intro: md("## My title \n\nLorem Ipsum"),
// Per-locale external files
article: t({
en: md(file("./article.en.md")),
fr: md(file("./article.fr.md")),
}),
},
} satisfies Dictionary;
export default content;

Other ways to declare it:

  • `.content.md` files (since v8.10): a Markdown file with key (and optional locale) in its front-matter, e.g. article.en.content.md, article.fr.content.md.
  • Automatic detection: set contentAutoTransformation: true (per dictionary or globally in intlayer.config.ts) and plain strings containing Markdown syntax are transformed.

Rendering via useIntlayer

An md node renders directly as the framework's native output (JSX, VNode, HTML string). MDX is supported: component names used in the Markdown resolve against the components map.

tsx
const { intro } = useIntlayer("app");
<div>{intro}</div>; // Rendered markdown
intro.use({ h1: (props) => <h1 className="title" {...props} /> }); // Local override
intro.value; // Raw markdown string
intro.metadata.title; // Parsed front-matter

Priority: .use() > global provider > default renderer.

Global Configuration

Set default components and options once for the whole app:

FrameworkGlobal configuration
React, Next.js, Preact, Solid, SvelteMarkdownProvider from <package>/markdown
Vueapp.use(intlayerMarkdown, options) from vue-intlayer/markdown
AngularcreateIntlayerMarkdownProvider(options) in ApplicationConfig
AstroinstallIntlayerMarkdown(options) in the middleware and a <script>
Lit, VanillainstallIntlayerMarkdown() next to installIntlayer()

Rendering Raw Markdown Strings

For Markdown that does not come from a dictionary, use the helpers from <package>/markdown: <MarkdownRenderer />, useMarkdownRenderer() and renderMarkdown(). They accept raw strings only, not useIntlayer nodes.

Performance

  • Suspense (React): the parser (~55kb) is loaded lazily. Wrap components rendering Markdown in a <Suspense> boundary, otherwise React suspends at the root.
  • SSR: call parseMarkdown() on the server and pass the serializable AST to the client; every rendering helper accepts it, so the browser skips parsing.

Options

Accepted by the global configuration and the helpers: forceBlock, forceInline, tagfilter (default true, strips dangerous HTML), preserveFrontmatter, components, wrapper, renderMarkdown.

References

Concepts
Packages

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aymericzip/intlayer-skills/intlayer-markdown/badge)](https://verified-skill.com/skills/aymericzip/intlayer-skills/intlayer-markdown)

Something wrong with this skill or its page? Tell us.