This commit is contained in:
Kovid Goyal 2016-12-23 07:42:37 +05:30
parent 151885cb89
commit 5721f39597

View File

@ -21,8 +21,11 @@ def get_highlighted_toc_nodes(toc, parent_map, id_map):
ans = {}
if data.has_visible:
ans = data.visible_anchors
elif data.before:
else:
if data.before:
ans[data.before] = True
else:
pass # TODO: implement this
for node_id in Object.keys(ans):
pid = parent_map[node_id]
while pid: