ansi2html icon indicating copy to clipboard operation
ansi2html copied to clipboard

Convert text with ansi color codes to HTML

Results 24 ansi2html issues
Sort by recently updated
recently updated
newest added

When converting to LaTeX in non-inline mode, `ansi2html` produces commands like `\textcolor{ansi33}`, although `ansi*` colors are not defined. Maybe just use `\textcolor[HTML]{aa5500}` like in inline mode?

bug

Using this example file: [`italic.txt`](https://github.com/pycontribs/ansi2html/files/6281788/italic.txt) ```bash $ cat italic.txt | ansi2html --latex --inline ``` Crashes with this traceback: ```python Traceback (most recent call last): File "/usr/bin/ansi2html", line 33, in sys.exit(load_entry_point('ansi2html==1.6.0',...

bug

Hi. Browsing through `style.py` seems to indicate there's currently no way to override `#AAAAAA` with plain old `#FFFFFF`. Am I missing something, or is this a feature request?

enhancement

``` /root/.pyenv/shims/python3 ./html-report.py --host="https://$acmehostname.$acmedomain/" --fname="$TESTENV.html" --directory=$SERVER deploy is a string. python 3,12,2 linux ubuntu 22.04LTS Traceback (most recent call last): File "/builds/tlsvid/acme/acme-azure-auto-test/./html-report.py", line 31, in deploy = Ansi2HTMLConverter(linkify=True, inline=True).convert(deploy) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

I added `custom_bg`, `custom_fg`, and `custom_content_css_dict` parameters to Ansi2HTMLConverter to enable specifying custom background/foreground colors and css properties because I needed this functionality in my own project. I believe this...

minor

Sorry if it's a wrong place to ask. Feel free to close. Basically I want to make multiple html files from long outputs, say 1000 rows in a single html.

I've been using ansi2html for years. On my Gentoo Linux, I upgraded and noticed a different behavior. Previously if I redirected output a full HTML page with Doctype declaration and...

### Discussed in https://github.com/pycontribs/ansi2html/discussions/224 Originally posted by **kobygold** September 18, 2023 Hi guys, I'm sure this is basic, but I couldn't find that on the documentation: How can I use...

Hello, Thanks for the great tool! I was trying to increase the font_size by initializing the converter this way: `Ansi2HTMLConverter(font_size='x-large')`. However, the converted html text seems to be inside a...

Apparently https://github.com/asciidoc-py/asciidoc-py is declared legacy and have lots of problems, including inability to parse current version of the specification or to work under MacOS. In order to be able to...

bug