Skip to content

Commit

Permalink
Update post to highlight specific lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamigami55 committed Sep 3, 2022
1 parent 1ec542e commit 3ac1ea5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions content/posts/20220901-post-with-code.mdx
Expand Up @@ -10,12 +10,12 @@ type: Post

Some other posts! with `some inline code`!

```js
```js showLineNumbers
const a = 1;
a = 2;
```

```tsx
```tsx showLineNumbers {5,15-17}
import "@/styles/globals.css";

import type { AppProps } from "next/app";
Expand All @@ -40,6 +40,13 @@ function MyApp({ Component, pageProps }: AppProps) {
export default MyApp;
```

```diff-js showLineNumbers {3-4}
const a = 1;
- a = 2;
+ a = 2;
a = 3;
```

```shell
$ echo "Hello world!"
```
Expand Down

0 comments on commit 3ac1ea5

Please sign in to comment.