Skip to main content

customize-markdown

Guide for customizing markdown rendering in Mind Elixir nodes, including using third-party libraries.

소스 정보

저장소
SSShooter/mind-elixir-core
최근 소스 활동
2026년 2월 13일 12:04
감지된 SKILL.md 언어
영어
스타
3,179
포크
417

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
Customize Markdown
description
Guide for customizing markdown rendering in Mind Elixir nodes, including using third-party libraries.
# 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.
GitHub에서 보기