Crates.io | ansi-to-html |
lib.rs | ansi-to-html |
version | |
source | src |
created_at | 2020-11-13 18:25:47.146391+00 |
updated_at | 2024-11-29 18:58:34.927243+00 |
description | ANSI escape codes to HTML converter |
homepage | https://github.com/Aloso/to-html/tree/master/crates/ansi-to-html |
repository | https://github.com/Aloso/to-html |
max_upload_size | |
id | 312055 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Rust library to convert a string that can contain ANSI escape codes to HTML.
This crate currently supports SGR parameters (text style and colors). The supported styles are:
Not supported SGR parameters (note that most of these are niche features and rarely supported by terminals):
All unsupported ANSI escape codes are stripped from the output.
It should be easy to add support for more styles, if there's a straightforward HTML representation. If you need a different style (e.g. doubly underlined), file an issue.