mikaelbr / marked-terminal

A Renderer for the marked project. Allowing you to render Markdown to print to your Terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use chalk-pipe for more styles

LitoMore opened this issue · comments

Currently, we are using chalk to customize the color scheme:

marked.setOptions({
  renderer: new TerminalRenderer({
    codespan: chalk.underline.magenta,
  })
});

With chalk-pipe, we can customize colors like this:

marked.setOptions({
  renderer: new TerminalRenderer({
    codespan: 'underline.#ff99cc'
  })
});

It also good for user to store their color schemes with string.

I'm glad to help with this feature.