Skip to content

Commit 864cc79

Browse files
committed
fix(renderer.py): filter out table of figures
1 parent 0208bc1 commit 864cc79

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

vrdu/renderer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,13 @@ def _render_float_envs(self, content: str, pattern: str, category: str) -> str:
722722
if i > 0:
723723
result += content[indexes[i - 1][1] : indexes[i][0]]
724724
float_env = content[indexes[i][0] : indexes[i][1]]
725+
726+
# filter tablle of figures
727+
if category == "Table" and float_env.find("\\includegraphics") != -1:
728+
continue
729+
730+
# TODO: filter table in equation envs
731+
725732
self.texts[category].append(float_env)
726733
colored_float_env = utils.colorize(float_env, category)
727734
result += colored_float_env

0 commit comments

Comments
 (0)