Skip to content

Commit

Permalink
doc: doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
姚元璋 committed Sep 26, 2023
1 parent 08ad587 commit b5e7fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ npm install tabletomd --save
import { convert } from 'tabletomd';
import fs from 'fs';
import path from 'path';
const html = fs.readFileSync(path.resolve(process.cwd(), './test/table.html'), {
const content = fs.readFileSync(path.resolve(process.cwd(), './test/table.html'), {
encoding: 'utf-8',
});
const markdown = convert(html);
const markdown = convert(content);
console.log(markdown);
// | Company | Contact | Country |
// |:---------------------------|:----------------|:--------|
Expand Down

0 comments on commit b5e7fed

Please sign in to comment.