Skip to content

1.0.0-beta2

Choose a tag to compare

@dborsatto dborsatto released this 26 Sep 13:03
· 156 commits to master since this release

Added

  • Node renderer Contentful\StructuredText\NodeRenderer\CatchAll can be used to avoid having the main renderer throw an exception in the event of an unsupported node. Use it like this:
    $renderer = new Contentful\StructuredText\Renderer();
    $renderer->appendNodeRenderer(new Contentful\StructuredText\NodeRenderer\CatchAll());
    It's important to use the appendNodeRenderer method to make the main renderer use it as last resort, otherwise, it will intercept all calls to other nodes.
  • NodeInterface now includes method getNodeClass, for exposing whether a node is of type block or inline.