Open paulrobertlloyd opened 5 years ago
I have fixed this by extracting a plain text value by using the html-to-text package, as can be seen in this commit. Not sure if this is the right approach, or reflects the intention behind the post type discovery heuristics however.
Thanks, I created a PR from your branch and merged it. Pushed to npm too.
Do you have an example (probably real world) of when this happens, I'd like to add it to the test suite so that there aren't any regressions in the future.
It would seem the mf2 objects created by Quill contain only a
html
value for thecontent
property, i.e.:As this package assumes a content property will also contain a
value
key, such an mf2 object throws the following error: