symfony-tools/docs-builder

Issue when parsing a head-less table

javiereguiluz opened this issue · 1 comments

In this file: https://github.com/sonata-project/SonataAdminBundle/blob/3.x/docs/reference/security.rst there's this table:

The role name will be based on the name of your admin service.

========================   ======================================================
app.admin.foo              ROLE_APP_ADMIN_FOO_{PERMISSION}
my.blog.admin.foo_bar      ROLE_MY_BLOG_ADMIN_FOO_BAR_{PERMISSION}
App\\Admin\\FooAdmin       ROLE_APP\\ADMIN\\FOOADMIN_{PERMISSION}
========================   ======================================================

This is correctly parsed by Sphinx:

image

But with docs-builder, the table is not parsed and I see this error message:

/!\ Malformed table:

app.admin.foo | ROLE_APP_ADMIN_FOO_{PERMISSION}
my.blog.admin.foo_bar | ROLE_MY_BLOG_ADMIN_FOO_BAR_{PERMISSION}
App\\Admin\\FooAdmin | ROLE_APP\\ADMIN\\FOOADMIN_{PERMISSION}

Tables without heads are uncommon, but I wouldn't consider this an edge-case. Thanks!