Skip to content

Commit

Permalink
Merge pull request #56 from ambanum/turndown-extension
Browse files Browse the repository at this point in the history
Convert HTML tables to Markdown
  • Loading branch information
Ndpnt authored Jul 29, 2020
2 parents fdda598 + e2be405 commit e1e30f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"dotenv": "^8.2.0",
"http-proxy-agent": "^4.0.1",
"https-proxy-agent": "^5.0.0",
"joplin-turndown-plugin-gfm": "^1.0.12",
"jsdom": "^16.2.2",
"node-fetch": "^2.6.0",
"node-schedule": "^1.3.2",
Expand Down
2 changes: 2 additions & 0 deletions src/filter/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import TurndownService from 'turndown';
import turndownPluginGithubFlavouredMarkdown from 'joplin-turndown-plugin-gfm';
import jsdom from 'jsdom';

const { JSDOM } = jsdom;
const turndownService = new TurndownService();
turndownService.use(turndownPluginGithubFlavouredMarkdown.gfm);


export default async function filter(content, selector, filterNames, filterFunctions) {
Expand Down

0 comments on commit e1e30f1

Please sign in to comment.