Skip to content

Commit

Permalink
docs: fix jdocs example (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Feb 6, 2024
1 parent 7141472 commit d253f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Render a markdown link.
**Example:**

```js
md.link("Google", "https://www.google.com");
md.link("https://www.google.com", "Google");
// => "[Google](https://www.google.com)"
```

Expand Down
2 changes: 1 addition & 1 deletion src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function heading(text: string, level: number): string {
* @example
*
* ```js
* md.link('Google', 'https://www.google.com');
* md.link('https://www.google.com', 'Google');
* // => "[Google](https://www.google.com)"
* ```
*
Expand Down

0 comments on commit d253f09

Please sign in to comment.