I'm trying to write a syntax container plugin to auto-format a table. The table is conceptually divided into groups (each group consists of one or more rows), and we want to have alternating background colors for each group. Basically we need to detect when the first column on any given row is non-empty; this marks a new group and the background color should change.
I have all that mostly working. One problem I have identified is that if the content of a cell is surrounded by dokuwiki syntax, our plugin never gets to see it. For example, if the cell's contents are // default argument //
, our plugin only gets told about any whitespace either side of the text, and we therefore can't identify it as a non-empty cell.
I had hoped that we would get that text as DOKU_LEXER_UNMATCHED but that seems not to be the case. So my question is, is there any way that our plugin is able to see text that "belongs" to other modes?