Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you use the optional "options" parameter to modify the template? #11

Open
bluefire2121 opened this issue Mar 13, 2020 · 1 comment

Comments

@bluefire2121
Copy link

I only want the content from the template and not the surrounding html (header, body etc.)
Is it
rtfToHTML.fromString(rtf, () => { return <div></div> } , (err, html) => console.log(html) )

???

@bluefire2121
Copy link
Author

It's
const template = (doc, default, content) => { return content }
rtfToHTML.fromString(rtf, {template: template} , (err, html) => console.log(html) )

for anyone else asking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant