Repository navigation
1.0.0-beta2
Added
- Node renderer
Contentful\StructuredText\NodeRenderer\CatchAllcan be used to avoid having the main renderer throw an exception in the event of an unsupported node. Use it like this:It's important to use the$renderer = new Contentful\StructuredText\Renderer(); $renderer->appendNodeRenderer(new Contentful\StructuredText\NodeRenderer\CatchAll());
appendNodeRenderermethod to make the main renderer use it as last resort, otherwise, it will intercept all calls to other nodes. NodeInterfacenow includes methodgetNodeClass, for exposing whether a node is of typeblockorinline.