Skip to content

Commit

Permalink
Merge pull request #41 from Erim32/pr-feature-selected-lines
Browse files Browse the repository at this point in the history
Feature support selected lines option
  • Loading branch information
petersolopov authored Oct 12, 2023
2 parents ad530d9 + c805f87 commit a6f3041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Send POST `https://carbonara.solopov.dev/api/cook` to take an image of code snip
| `paddingHorizontal` | `"56px"` | string | horizontal padding |
| `paddingVertical` | `"56px"` | string | vertical padding |
| `prettify` | `false` | boolean | prettify code with prettier. It works with javascript snippets only, like in carbon. |
| `selectedLines` | `""` | string | selected lines to highlight. e.g. `3`, `3,4`, `3,6,8` |
| `theme` | `"seti"` | string | code theme |
| `watermark` | `false` | boolean | turn on/off watermark |
| `width` | `536` | number | specify the width of the screenshot |
Expand Down
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const optionToQueryParam = {
paddingHorizontal: "ph",
paddingVertical: "pv",
squaredImage: "si",
selectedLines: "sl",
theme: "t",
watermark: "wm",
width: "width",
Expand Down

0 comments on commit a6f3041

Please sign in to comment.