Skip to content

Markdown rendering is broken for special patterns like [$imagegen](...) and $skill-name #136

@comfuture

Description

@comfuture

Summary

Markdown rendering is broken for special patterns like [$imagegen](/Users/user01/.codex/skills/.system/imagegen/SKILL.md) and tokens such as $skill-name.

Details

In OpenAI Codex and similar tools, special text patterns like $skill-name are often used. Currently, comark misinterprets these as unclosed tags, resulting in ugly rendering in the output. These are not intended to be treated as raw markdown tags or links but as literal text.

Expected Behavior

  • Patterns such as [$imagegen](path) or $skill-name should be rendered as plain text or links as appropriate.
  • Markdown renderer should not interpret $...-style strings as incomplete tags and must not produce broken or malformed output.

Steps to Reproduce

  1. Paste [$imagegen](/Users/user01/.codex/skills/.system/imagegen/SKILL.md) into a markdown file/preview with comark.
  2. Observe that rendering is broken/ugly.
  3. Try the same with text like $skill-name.

Environment

  • comarkdown/comark (latest version)

Additional Context

This issue affects many users coming from OpenAI Codex or similar platforms. Addressing this would substantially improve the compatibility and readability for code or skill-related markdown content.


Please let me know if more information or examples are needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions