Skip to content

Commit

Permalink
fix markdown features code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jan 4, 2024
1 parent c50ff89 commit 2633ae3
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ You can reference images relative to the current file as well. This is particula
## Code Blocks

Markdown code blocks are supported with Syntax highlighting.

````md
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return <h1>Hello, Docusaurus!</h1>;
}
```
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return (
<h1>Hello, Docusaurus!</h1>
)
}
```
```
````

```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return <h1>Hello, Docusaurus!</h1>;
Expand All @@ -78,19 +78,21 @@ function HelloDocusaurus() {
## Admonitions

Docusaurus has a special syntax to create admonitions and callouts:
```
:::tip My tip

Use this awesome feature option
```md
:::tip My tip

Use this awesome feature option

:::
:::

:::danger Take care
:::danger Take care

This action is dangerous
This action is dangerous

:::
:::
```

:::tip My tip

Use this awesome feature option
Expand Down

0 comments on commit 2633ae3

Please sign in to comment.