Closed crutchcorn closed 3 months ago
Hey. Thank you so much for this PR.
Should we call Object.freeze()
on exported default arrays to prevent modifications? Or is it too much?
export const defaultAllowedAttributes = Object.freeze([...]);
We could do that! I don't think it's inherently required, but I could see that becoming a headache if someone accidentally pushes to it. Up to you!
It can wait for the issue then. 😄
This PR unblocks #140, as it allows user of the library to pass allowed attributes and tags to the epub generation.