https://github.com/jgraichen/markdown-ansi
markdown-ansi
https://github.com/jgraichen/markdown-ansi
Last synced: about 1 month ago
JSON representation
markdown-ansi
- Host: GitHub
- URL: https://github.com/jgraichen/markdown-ansi
- Owner: jgraichen
- Created: 2023-03-17T21:39:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T07:30:18.000Z (over 2 years ago)
- Last Synced: 2025-03-20T08:13:36.488Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# markdown-ansi
A `pymdownx.superfences` formatter for rendering console output with ANSI colors using [`ansi2html`](https://github.com/pycontribs/ansi2html).
Note: _Only_ ANSI color escape sequences are supported. Other escape sequences should be removed manually.
## Usage
```yaml
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: ansi
class: ansi
format: !!python/name:markdown_ansi.ansi.fence_code_format
```