Skip to main content
Skip table of contents

Supported Git File Types

This page lists which file types can be previewed directly in the Capable Git browser and macros, and which are not supported.

Markdown

  • Extensions: .md, .markdown, .mdx

  • Behavior: Rendered as rich Markdown.

Diagrams

Rendered inline as diagrams where supported.

  • Mermaid: .mermaid, .mmd

  • PlantUML: .plantuml, .puml

  • Graphviz/DOT: .dot, .gv

  • D2: .d2

  • DBML: .dbml

  • Excalidraw: .excalidraw

  • BPMN: .bpmn

  • Bytefield: .bytefield

  • ERD: .erd

  • Symbolator: .symbolator

  • C4-PlantUML: .c4plantuml

  • Blockdiag family: .blockdiag, .actdiag, .seqdiag, .packetdiag, .nwdiag, .rackdiag

  • Vega/Vega-Lite: .vega.json, .vegalite.json

Notes:

  • Some specialized diagram types may require valid syntax to render. Invalid content will show as plain text or an error.

Code (syntax-highlighted)

Common languages are syntax-highlighted when previewed.

  • JavaScript/TypeScript: .js, .jsx, .ts, .tsx

  • Python: .py

  • Java: .java

  • C/C++: .c, .cpp

  • C#: .cs

  • Go: .go

  • Rust: .rs

  • Ruby: .rb

  • PHP: .php

  • Swift: .swift

  • Kotlin: .kt

  • Scala: .scala

  • Shell: .sh, .bash, .zsh

  • SQL: .sql

  • R: .r

  • MATLAB/Octave: .m

  • Perl: .pl

  • Lua: .lua

  • Dart: .dart

  • Vue: .vue

Configuration and Data

Displayed with appropriate formatting or syntax highlighting.

  • JSON: .json

  • YAML: .yaml, .yml

  • TOML: .toml

  • INI/CFG/CONF: .ini, .cfg, .conf

  • ENV: .env

Markup and Stylesheets

  • HTML: .html, .htm

  • XML/SVG: .xml, .svg

  • CSS/SCSS/SASS/LESS: .css, .scss, .sass, .less

Images

Rendered inline as images.

  • .png, .jpg, .jpeg, .gif, .webp, .bmp, .ico, .svg

Plain text (fallback)

Files without a recognized type above are displayed as plain text when possible.

Not Supported (will not render inline)

These formats are treated as binary or unsupported and will not preview inline. You can still link to or reference them, but they won’t render inside the page/modal.

  • Documents: .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx

  • Archives: .zip, .tar, .gz, .bz2, .7z, .rar

  • Executables/Installers: .exe, .dll, .dmg, .pkg, .iso

  • WebAssembly: .wasm

Notes and limitations

  • Large files or extremely long lines may be truncated for performance.

  • Private repositories and branches will only render for users who already have access via their own account.

  • For diagrams, ensure the file contains valid syntax for the declared format.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.