-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat: Support hide lines in remark-embed-snippet #6084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
ccb6f62
7da3162
a60891e
a280b94
92fcba3
69fdee7
a7bdb18
7324d39
688c903
63f588f
6b37cdf
df80eed
3b5a881
0e62ca2
5ecf804
4cd6ab7
65ef8b9
986d615
8f2a727
8407607
ecaa0f6
bb0f3f4
0f0a377
8eb4dbb
c92a6e4
66eaa65
c42ba96
0a44d6c
53c4fae
190ec0b
7341226
98cef72
d9e38d7
353f078
9d6e3aa
f727d86
c676e15
0349dd4
4062fb1
2a1b01c
4e3c607
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,6 +110,30 @@ baz: "highlighted" | |
| quz: "highlighted" | ||
| ``` | ||
|
|
||
| ### Hide Lines | ||
|
|
||
| Also is possible specify a range of lines to be hide. | ||
|
|
||
| #### JavaScript example | ||
|
|
||
| ```js | ||
| // hideline-range{1-3,9-11} | ||
washingtonsoares marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import React from "react" | ||
| import ReactDOM from "react-dom" | ||
|
|
||
| function App() { | ||
| return ( | ||
| <h1>Hello world!</h1> | ||
| ) | ||
| } | ||
|
|
||
| const rootElement = document.getElementById("root") | ||
| ReactDOM.render(<App />, rootElement) | ||
| ``` | ||
|
|
||
| Will produce something like this: | ||
|  | ||
|
||
|
|
||
| ## Installation | ||
|
|
||
| `npm install --save gatsby-remark-embed-snippet` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.