Skip to content

Commit

Permalink
doc: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
姚元璋 committed Sep 26, 2023
1 parent 450777e commit 2da385d
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ console.log(converted);
// | Centro comercial Moctezuma | Francisco Chang | Mexico |
```

[OUTPUT](https://github.com/yyz945947732/tabletomd/tree/master/example/convertOutput.md)

### Remote (`convertUrl`)

```typescript
Expand All @@ -59,6 +61,8 @@ import { convertUrl } from 'tabletomd';
const markdown = await convertUrl('https://www.npmjs.com/package/rc-table');
```

[OUTPUT](https://github.com/yyz945947732/tabletomd/tree/master/example/convertUrlOutput.md)

## Credits

The following node libraries make this utility super easy:
Expand Down
4 changes: 4 additions & 0 deletions example/convertOutput.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
| Company | Contact | Country |
|:---------------------------|:----------------|:--------|
| Alfreds Futterkiste | Maria Anders | Germany |
| Centro comercial Moctezuma | Francisco Chang | Mexico |
Loading

0 comments on commit 2da385d

Please sign in to comment.