You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Add to your `gatsby-config.js` (all options are optional; defaults shown here):
57
57
// All options are optional. Defaults shown here.
58
58
options: {
59
59
colorTheme:'Dark+ (default dark)', // Read on for list of included themes. Also accepts object and function forms.
60
-
wrapperClassName:'', // Additional class put on 'pre' tag
60
+
wrapperClassName:'', // Additional class put on 'pre' tag. Also accepts function to set the class dynamically.
61
61
injectStyles:true, // Injects (minimal) additional CSS for layout and scrolling
62
62
extensions: [], // Extensions to download from the marketplace to provide more languages and themes
63
63
extensionDataDirectory:// Absolute path to the directory where extensions will be downloaded. Defaults to inside node_modules.
@@ -335,7 +335,7 @@ Line numbers and ranges aren’t the only things you can pass as options on your
335
335
<Amazing><Stuff /></Amazing>
336
336
```
337
337
338
-
`gatsby-remark-vscode` doesn’t inherently understand these things, but it parses the input and allows you to access it in the `colorTheme` and `getLineClassName` functions:
338
+
`gatsby-remark-vscode` doesn’t inherently understand these things, but it parses the input and allows you to access it in the `colorTheme`, `wrapperClassName` and `getLineClassName` functions:
339
339
340
340
```js
341
341
{
@@ -350,7 +350,8 @@ Line numbers and ranges aren’t the only things you can pass as options on your
Copy file name to clipboardExpand all lines: test/integration/cases/code-fence-meta.expected.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
<preclass="default-dark vscode-highlight" data-language="js"><codeclass="vscode-highlight-code"><spanclass="vscode-highlight-line vscode-highlight-line-highlighted"><spanclass="mtk3">// should be highlighted</span></span></code></pre>
1
+
<preclass="test-wrapper default-dark vscode-highlight" data-language="js"><codeclass="vscode-highlight-code"><spanclass="vscode-highlight-line vscode-highlight-line-highlighted"><spanclass="mtk3">// should be highlighted</span></span></code></pre>
2
+
<preclass="test-wrapper js-test default-dark vscode-highlight" data-language="js"><codeclass="vscode-highlight-code"><spanclass="vscode-highlight-line"><spanclass="mtk3">// should be highlighted</span></span></code></pre>
0 commit comments