diff --git a/src/parse.ts b/src/parse.ts index 0b2f741b9c..9d57d30d2c 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,6 +1,6 @@ import { DomUtils } from 'htmlparser2'; -import { parse as parseWithHtmlparser2 } from './parsers/htmlparser2'; -import { parse as parseWithParse5 } from './parsers/parse5'; +import { parse as parseWithHtmlparser2 } from './parsers/htmlparser2-adapter'; +import { parse as parseWithParse5 } from './parsers/parse5-adapter'; import { Node, Document, diff --git a/src/parsers/htmlparser2.ts b/src/parsers/htmlparser2-adapter.ts similarity index 100% rename from src/parsers/htmlparser2.ts rename to src/parsers/htmlparser2-adapter.ts diff --git a/src/parsers/parse5.ts b/src/parsers/parse5-adapter.ts similarity index 100% rename from src/parsers/parse5.ts rename to src/parsers/parse5-adapter.ts diff --git a/src/static.ts b/src/static.ts index 71e2b94c40..b7bc4b463c 100644 --- a/src/static.ts +++ b/src/static.ts @@ -8,8 +8,8 @@ import { } from './options'; import { select } from 'cheerio-select'; import { ElementType, DomUtils } from 'htmlparser2'; -import { render as renderWithParse5 } from './parsers/parse5'; -import { render as renderWithHtmlparser2 } from './parsers/htmlparser2'; +import { render as renderWithParse5 } from './parsers/parse5-adapter'; +import { render as renderWithHtmlparser2 } from './parsers/htmlparser2-adapter'; /** * Helper function to render a DOM.