-
Notifications
You must be signed in to change notification settings - Fork 12
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
which file/package actually exports Element #182
Comments
oh my god! - i finally found the package.json that refers to it - i had no idea that there was a npm package called "domhandler" - ok, so that's how I import it. You should probably add that to the howto docs - i spent a few hours trying to find it. |
OK, so this is now feedback, if you're needing to add some custom configuration, for your slatetohtml serializer, I had to pull all of the default configuration out of the repo. Therefore, in order to have this:
I not only needed this:
but all of this as well:
I think for anyone to be able to extend the configuration, you need to export the whole default configuration as well as making it clear that the implementor would need to run
as well |
I'm basically suggesting that your documentation needs a little more detail here. |
I'm trying to configure slatetohtml to convert a slate image representation to an html one as in:
<img src="..."/>
for that I need your Element type definition.
file after file says:
import { Element, Text } from 'domhandler'
but when I go to domhandler.ts it says....wait for it...the same damned thing!
so how do I import Element here:
??
error: Module '"@slate-serializers/html"' has no exported member 'Element'
The text was updated successfully, but these errors were encountered: