Use chalk-pipe for more styles
LitoMore opened this issue · comments
LitoMore commented
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.