Walk through delimiter list and replace text tokens with tags.
(state: StateInline)
| 156 | |
| 157 | |
| 158 | def postProcess(state: StateInline) -> None: |
| 159 | """Walk through delimiter list and replace text tokens with tags.""" |
| 160 | tokens_meta = state.tokens_meta |
| 161 | maximum = len(state.tokens_meta) |
| 162 | _postProcess(state, state.delimiters) |
| 163 | |
| 164 | curr = 0 |
| 165 | while curr < maximum: |
| 166 | try: |
| 167 | curr_meta = tokens_meta[curr] |
| 168 | except IndexError: |
| 169 | pass |
| 170 | else: |
| 171 | if curr_meta and "delimiters" in curr_meta: |
| 172 | _postProcess(state, curr_meta["delimiters"]) |
| 173 | curr += 1 |
nothing calls this directly
no test coverage detected
searching dependent graphs…