Skip to content

Commit

Permalink
fix: force open collapsible sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomzoy committed Aug 31, 2022
1 parent 2df9b9b commit a8e7180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkdocs_glightbox/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def prune(elem):
if not found_first_parent:
# Centering the table in its immediate parent div
parent["style"] = "text-align: center"
# Adding an "open" attribute for collapsible sections
parent["open"] = ""
found_first_parent = True
parent.clear()
parent.append(pruned)
Expand Down

0 comments on commit a8e7180

Please sign in to comment.