Skip to content

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Feb 11, 2020

When the value is specified, it beauty JSON payload for taking a nice screenshot 👌

Supported local themes: https://github.com/PrismJS/prism-themes
Default value is: 'dracula'

Examples

Load a prism theme from local

node src/screenshot.js https://microlink-stats-api.now.sh --styles "span { font-size: 24px; }" --codeScheme atom-dark

Load a prism theme from URL

node src/screenshot.js https://microlink-stats-api.now.sh --styles "span { font-size: 24px; }" --codeScheme https://unpkg.com/prism-theme-night-owl

Closes #137

@Kikobeats Kikobeats changed the title [screenshot]: AddcodeScheme [screenshot]: Add codeScheme Feb 11, 2020
@coveralls
Copy link

coveralls commented Feb 11, 2020

Coverage Status

Coverage decreased (-2.4%) to 67.059% when pulling aae9835 on next into a7b1d94 on master.

@Kikobeats Kikobeats merged commit 8c0aedd into master Feb 12, 2020
@Kikobeats Kikobeats deleted the next branch February 12, 2020 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[goto] pretty JSON response

2 participants