소스 정보
- 저장소
- tomevault-io/skills-registry
- 최근 소스 활동
- 2026년 7월 3일 19:45
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tomevault-io/skills-registry --skill migrate-mdc-to-comark명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | migrate-mdc-to-comark |
| description | >- Use when this capability is needed. |
@nuxtjs/mdc was Nuxt-only. Comark is its successor — the markdown syntax is fully compatible, your .md files need no changes. What changes is the JavaScript API.
The migration has two parts: Core Package (programmatic API) and Nuxt Module (components, slots, config).
@nuxtjs/mdc → comark (core only) or @comark/nuxt (Nuxt module)parseMarkdown() → parse() · factory: createParse() (sync, no await)stringifyMarkdown() → renderMarkdown() from comark/render['tag', props, ...children]result.body / result.data → tree.nodes / tree.frontmatter<MDCRenderer :body :data> → <ComarkRenderer :tree><MDC :value> → <Comark :markdown><MDCSlot /> → native <slot />nuxt.config → per-component defineComarkComponent({ plugins })@nuxtjs/mdc | comark |
|---|---|
parseMarkdown(md, opts) | parse(md, opts) from comark |
createMarkdownParser(opts) (async) | createParse(opts) (sync — no await) |
stringifyMarkdown(body, data) | renderMarkdown(tree) from comark/render |
result.body (MDCRoot) | tree.nodes (ComarkNode[]) |
result.data | tree.frontmatter |
result.data.title | tree.frontmatter.title |
result.toc | tree.meta.toc (requires toc plugin) |
result.excerpt | tree.meta.summary (requires summary plugin) |
@nuxtjs/mdc | comark |
|---|---|
{ type: 'root', children: MDCNode[] } | { nodes: ComarkNode[], frontmatter: {}, meta: {} } |
{ type: 'element', tag: 'p', props: {}, children: [] } | ['p', {}, ...children] |
{ type: 'text', value: 'hello' } | 'hello' (plain string) |
// Before — MDCParseOptions
{
remark: { plugins: { /* record */ } },
rehype: { options: {...}, plugins: { /* record */ } },
highlight: { theme: '...', langs: [...] } | false,
toc: { depth: 3, searchDepth: 2 } | false,
}
// After — ParseOptions
{
plugins: ComarkPlugin[], // ordered array, not a record
autoUnwrap: true, // removes <p> from single-paragraph containers
autoClose: true, // completes incomplete syntax (useful for streaming)
html: true, // parse embedded HTML tags
}
The unified/remark/rehype pipeline is replaced by Comark's own lighter plugin interface.
| Feature | Before | After |
|---|---|---|
| Syntax highlighting | rehypeHighlight via createMarkdownParser | highlight() from comark/plugins/highlight |
| Table of Contents | parseMarkdown(md, { toc: { depth: 3 } }) | toc({ depth: 3 }) plugin |
| Excerpt / Summary | result.excerpt (built-in) | summary() plugin → tree.meta.summary |
| Emoji | remark-emoji (enabled by default) | emoji() plugin (opt-in) |
Available plugins: comark/plugins/toc, comark/plugins/highlight, comark/plugins/emoji, comark/plugins/task-list, comark/plugins/summary, comark/plugins/security, comark/plugins/alert, comark/plugins/math, comark/plugins/mermaid, comark/plugins/punctuation
// Before
export default defineNuxtConfig({
modules: ['@nuxtjs/mdc'],
mdc: { highlight: { ... }, remarkPlugins: { ... } },
})
// After
export default defineNuxtConfig({
modules: ['@comark/nuxt'],
// No plugin config here — plugins are defined per-component
})
@comark/nuxt auto-imports: Comark, ComarkRenderer, defineComarkComponent, defineComarkRendererComponent.
@nuxtjs/mdc | @comark/nuxt |
|---|---|
<MDCRenderer :body :data :components> | <ComarkRenderer :tree :components> |
<MDC :value :parser-options> | <Comark :markdown :options> or <Comark>{{ md }}</Comark> |
<MDCSlot /> | <slot /> |
<MDCSlot unwrap="p" /> | <slot unwrap="p" /> |
<slot mdc-unwrap="p" /> | <slot unwrap="p" /> |
For a pre-parsed tree, use <ComarkRenderer> directly instead of <Comark>.
<ComarkRenderer> props changesMDC <MDCRenderer> | Comark <ComarkRenderer> | Notes |
|---|---|---|
body (MDCRoot) | tree (ComarkTree) | Different AST shape |
data | — | Frontmatter is in tree.frontmatter |
tag | — | Wrapper is always <div class="comark-content"> |
prose | — | Prose* resolution is automatic |
unwrap | — | Use autoUnwrap in parse options |
components | components | Same purpose |
| — | componentsManifest | New: dynamic async component resolver |
| — | streaming | New: streaming mode |
| — | caret | New: animated caret for streaming |
<!-- Before -->
<MDCRenderer :body="result.excerpt ?? result.body" :data="result.data" />
<!-- After -->
<Comark summary>{{ markdown }}</Comark>
defineComarkComponentReplaces global mdc: { ... } config. Define reusable components with their own plugins and component mappings:
import { defineComarkComponent } from '@comark/vue'
import highlight from 'comark/plugins/highlight'
import toc from 'comark/plugins/toc'
export const ArticleComark = defineComarkComponent({
name: 'ArticleComark',
plugins: [highlight({ themes: { light: githubLight, dark: githubDark } }), toc()],
components: { alert: CustomAlert },
})
<MDCSlot /> → native <slot />. Named slots work the same (#slotName in markdown, <slot name="slotName"> in component). The unwrap attribute (<slot unwrap="p">) strips wrapper tags from children.
Same Prose*.vue naming convention in components/prose/. Resolution changed from kebab-case (prose-p) to PascalCase (ProseP) internally — no file changes needed.
When using Nuxt UI, @comark/nuxt registers Nuxt UI prose components automatically. Shorthand callout components are available:
::note — informational
::tip — helpful suggestion
::warning — something to watch out for
::caution — critical warning
These are only available with Nuxt UI. Without it, use ::callout{icon="..." color="..."}.
createParse is sync — no await needed (unlike createMarkdownParser)attrs.lang, not attrs.languagetree.frontmatter, not passed separatelyrenderMarkdown includes frontmatter — reads tree.frontmatter automaticallyunified pipeline — mdc.config.ts hooks (pre, remark, rehype, post) have no equivalent, use ComarkPlugin interface insteadremark-emojiThe MDC block and inline component syntax is identical — no changes needed in .md files.
{{ variable }}) — not supported, rendered as plain textparseMarkdown(md, { data: { ... } })Source: comarkdown/comark — distributed by TomeVault.