Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Fx64b committed Oct 21, 2024
1 parent 64d5917 commit d8ade57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ inline, className, children, ...p
...
```
- We start of by setting the `useState()` for the copy button.
- We start off by setting the `useState()` for the copy button.
- Then we extract the language. During the markdown processing a class that looks like this is added to the codeblock to later identify the correct language: `language-tsx`
- Then the children prop (which contains all the code) is converted into a string and all trailing newline (`\n`)
Expand Down Expand Up @@ -220,7 +220,7 @@ return (
)
```
- `rehypeRaw` is used that stuff like `<br>` tags are not rendered as text and that the whole content looks halfway decent
- `rehypeRaw` is used that things like `<br>` tags are not rendered as text so that the content renders halfway decently.
- In the `components` attribute I specified the html elements I want to override with my own elements, specifically the `CodeBlock` component
<br>
Expand Down Expand Up @@ -286,7 +286,7 @@ Check out the code yourself if you want to: [Fx64b/fx64b.dev](https://github.com
<br>
If you have some spare time to waist you can help me clean up the code by creating a pull request.
If you have some spare time to waste you can help me clean up the code by creating a pull request.
<br>
Expand Down

0 comments on commit d8ade57

Please sign in to comment.