Directives within line blocks within grid tables are interpreted as invalid substitutions rather than directives.
Nor can directives like the class directive be used within the deprecated line-block directive.
Consider the example:
+---------+----------------+
| Address | |..class:: foo |
| | | |
| | | bar |
| | | baz |
+---------+----------------+
Expect a table with a class of 'foo' applied to cell 2. Instead, the class is interpreted as a malformed substitution reference.
There are missing space characters between the "line-block-bar" and the directive as well as between
the dots and the directive name
Also, the class directive must precede the object it applies to, so maybe you wanted
+---------+-----------------+
| Address | .. class:: foo |
| | |
| | | bar |
| | | baz |
+---------+-----------------+
Or, with the line-block directive:
.. class:: foo
.. line-block::
bar
baz