Skip to content

Commit

Permalink
Merge pull request #3 from razroo/export-html-to-pdf
Browse files Browse the repository at this point in the history
export convertHtmlToADF
  • Loading branch information
CharlieGreenman authored Dec 11, 2023
2 parents 6c6215c + e74002e commit 3e00280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/html-to-adf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -103,4 +103,4 @@ const convertToADF = (htmlString: string) => {
});

return adf;
};
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// export { Blah as default } from './lib'
export {convertHtmlToADF} from './html-to-adf';

0 comments on commit 3e00280

Please sign in to comment.