2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: to html
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
|
|
|
|
|
|
|
Convert table into simple HTML
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
```> to html --html-color --no-color --dark --partial --theme --list```
|
2022-02-14 03:22:51 +01:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
- `--html-color`: change ansi colors to html colors
|
|
|
|
- `--no-color`: remove all ansi colors in output
|
2022-02-14 03:22:51 +01:00
|
|
|
- `--dark`: indicate your background color is a darker color
|
|
|
|
- `--partial`: only output the html for the content itself
|
|
|
|
- `--theme {string}`: the name of the theme to use (github, blulocolight, ...)
|
|
|
|
- `--list`: list the names of all available themes
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Outputs an HTML string representing the contents of this table
|
|
|
|
```shell
|
|
|
|
> [[foo bar]; [1 2]] | to html
|
|
|
|
```
|
|
|
|
|
|
|
|
Optionally, only output the html for the content itself
|
|
|
|
```shell
|
|
|
|
> [[foo bar]; [1 2]] | to html --partial
|
|
|
|
```
|
|
|
|
|
|
|
|
Optionally, output the string with a dark background
|
|
|
|
```shell
|
|
|
|
> [[foo bar]; [1 2]] | to html --dark
|
|
|
|
```
|