diff --git a/src/html-to-adf.ts b/src/html-to-adf.ts index de51a29..92a921b 100644 --- a/src/html-to-adf.ts +++ b/src/html-to-adf.ts @@ -46,7 +46,7 @@ const processNode = (node, marks = [] as any) => { return textNodes; }; -const convertToADF = (htmlString: string) => { +export function convertHtmlToADF(htmlString: string): any { const nodes = parse(htmlString); const adf = { @@ -103,4 +103,4 @@ const convertToADF = (htmlString: string) => { }); return adf; -}; \ No newline at end of file +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 1decd97..2ec06d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -// export { Blah as default } from './lib' +export {convertHtmlToADF} from './html-to-adf'; \ No newline at end of file