Comark for GitHub 作者: Sebastien Chopin
Renders Comark (Markdown components & attributes) syntax nicely on GitHub.Renders Comark (Markdown components & attributes) syntax nicely on GitHub.
可在 Android™ 版 Firefox 上使用可在 Android™ 版 Firefox 上使用
扫码在 Android 版 Firefox 中打开此扩展
扩展元数据
屏幕截图
关于此扩展
Français
A browser extension that fixes GitHub's rendering of Markdown files written with Comark syntax — components, attributes, spans and bindings.
GitHub's Markdown renderer does not understand the Comark extensions: block components leak as plain paragraphs or broken headings, attribute groups show up as stray braces, and mdc code fences stay unhighlighted. With this extension installed, those files become readable again.
On github.com, for READMEs and .md blob previews:
1. Detects Comark syntax. The extension fetches the raw Markdown source (from raw.githubusercontent.com) and scans it. Plain Markdown files are left untouched.
2. Re-renders the whole document with Comark. The raw source is parsed by the real Comark parser and rendered to HTML with @comark/html, replacing GitHub's lossy rendering.
3. Shows Comark syntax as highlighted code.
4. Highlights code fences with rangi using GitHub's own color palette — including mdc /comark fences, which GitHub leaves plain. On non-Comark pages, mdc fences are highlighted in place without touching anything else.
Everything follows GitHub's light, dark and auto color modes.
A browser extension that fixes GitHub's rendering of Markdown files written with Comark syntax — components, attributes, spans and bindings.
GitHub's Markdown renderer does not understand the Comark extensions: block components leak as plain paragraphs or broken headings, attribute groups show up as stray braces, and mdc code fences stay unhighlighted. With this extension installed, those files become readable again.
On github.com, for READMEs and .md blob previews:
1. Detects Comark syntax. The extension fetches the raw Markdown source (from raw.githubusercontent.com) and scans it. Plain Markdown files are left untouched.
2. Re-renders the whole document with Comark. The raw source is parsed by the real Comark parser and rendered to HTML with @comark/html, replacing GitHub's lossy rendering.
3. Shows Comark syntax as highlighted code.
4. Highlights code fences with rangi using GitHub's own color palette — including mdc /comark fences, which GitHub leaves plain. On non-Comark pages, mdc fences are highlighted in place without touching anything else.
Everything follows GitHub's light, dark and auto color modes.
评分 0(1 位用户)
权限与数据
更多信息