Customize Markdown
Guide for customizing markdown rendering in Mind Elixir nodes, including using third-party libraries.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
---
name: "Customize Markdown"
description: "Guide for customizing markdown rendering in Mind Elixir nodes, including using third-party libraries."
license: "MIT"
---
# Customize Markdown
Mind Elixir supports markdown rendering in nodes. You can use the built-in simple parser or integrate a full-featured markdown library.
## 1. Default Behavior
By default, Mind Elixir does **not** parse markdown. You must provide a parsing function in the options to enable it.
## 2. Using a Custom Parsing Function
You can implement a simple replacement function if you only need basic formatting (bold, italic, code).
```javascript
let mind = new MindElixir({
// ... other options
markdown: text => {
// Simple regex replacements
return text
.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>')
.replace(/\*(.*?)\*/g, '<em>$1</em>')
.replace(/`(.*?)`/g, '<code>$1</code>')
},
})
```
## 3. Integrating with Third-Party Libraries
For full markdown support, it is recommended to use a library like `marked` or `markdown-it`.
### Example with `marked`
First, install the library:
```bash
npm i marked
```
Then, use it in your initialization:
```javascript
import { marked } from 'marked'
import MindElixir from 'mind-elixir'
let mind = new MindElixir({
// ... other options
markdown: text => marked(text),
})
```
This will render the node content as HTML generated by the markdown parser.More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

