Skip to content

Commit

Permalink
Fix docs description about code title
Browse files Browse the repository at this point in the history
  • Loading branch information
kohheepeace committed Mar 17, 2020
1 parent 0fa3637 commit 510551c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/docs/markdown-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ function MyComponent(props) {
export default MyComponent;
```

### Code Title
You can add title to code block by addding `title` key after the language meta string (leave a space after the language).
### Code title

You can add title to code block by adding `title` key after the language (leave a space between them).

```jsx title="src/components/HelloCodeTitle.js"
function HelloCodeTitle(props) {
Expand Down

0 comments on commit 510551c

Please sign in to comment.