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
- Paste
[$imagegen](/Users/user01/.codex/skills/.system/imagegen/SKILL.md) into a markdown file/preview with comark.
- Observe that rendering is broken/ugly.
- 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!
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-nameare 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
[$imagegen](path)or$skill-nameshould be rendered as plain text or links as appropriate.$...-style strings as incomplete tags and must not produce broken or malformed output.Steps to Reproduce
[$imagegen](/Users/user01/.codex/skills/.system/imagegen/SKILL.md)into a markdown file/preview with comark.$skill-name.Environment
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!