Skip to content

Commit

Permalink
feat(syntax-highlighter): add light variant called "idea" (#8938)
Browse files Browse the repository at this point in the history
  • Loading branch information
xseman authored Aug 17, 2023
1 parent c90ef50 commit 1b6391c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/usage/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ Parameter name | Docker variable | Description
</td>
<td><em>Unavailable</em></td>
<td><code>String=["agate"*, "arta", "monokai", "nord", "obsidian",
"tomorrow-night"]</code>. <a
"tomorrow-night", "idea"]</code>. <a
href="https://highlightjs.org/static/demo/" rel="nofollow">Highlight.js</a>
syntax coloring theme to use. (Only these 6 styles are available.)
syntax coloring theme to use. (Only these 7 styles are available.)
</td>
</tr>
<tr>
Expand Down
3 changes: 2 additions & 1 deletion src/core/syntax-highlighting.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import monokai from "react-syntax-highlighter/dist/esm/styles/hljs/monokai"
import nord from "react-syntax-highlighter/dist/esm/styles/hljs/nord"
import obsidian from "react-syntax-highlighter/dist/esm/styles/hljs/obsidian"
import tomorrowNight from "react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night"
import idea from "react-syntax-highlighter/dist/esm/styles/hljs/idea"

SyntaxHighlighter.registerLanguage("json", json)
SyntaxHighlighter.registerLanguage("js", js)
Expand All @@ -24,7 +25,7 @@ SyntaxHighlighter.registerLanguage("bash", bash)
SyntaxHighlighter.registerLanguage("powershell", powershell)
SyntaxHighlighter.registerLanguage("javascript", javascript)

const styles = {agate, arta, monokai, nord, obsidian, "tomorrow-night": tomorrowNight}
const styles = {agate, arta, monokai, nord, obsidian, "tomorrow-night": tomorrowNight, idea}
export const availableStyles = Object.keys(styles)

export const getStyle = name => {
Expand Down

0 comments on commit 1b6391c

Please sign in to comment.