sanity-io / block-content-to-html

Deprecated in favor of @portabletext/to-html
MIT License
20 stars 2 forks source link

Should support no options #1

Closed simen closed 7 years ago

simen commented 7 years ago

-When i just new BlockContentToHtml() it fails because typeHandlers become undefined. Should work, I think!-

Let me rephrase that: There seems to be no built in default type handlers? I agree most people will want to override these at some point, we should get instant gratification by having a default set of type handlers for the built in block types?

simen commented 7 years ago

Hm. I think this was all my fault for using an unbound stored version of the convert function. Move along …