Render headlines expanded by default.

This commit is contained in:
Sergio Martínez Portela 2022-08-28 14:10:08 +02:00
parent cf7cc38bd8
commit b610d356e8

View File

@ -390,9 +390,10 @@ def render(headline, doc, headlineLevel):
else:
todo_state = "done"
display_state = 'collapsed'
if headlineLevel < MIN_HIDDEN_HEADLINE_LEVEL:
display_state = 'expanded'
# display_state = 'collapsed'
# if headlineLevel < MIN_HIDDEN_HEADLINE_LEVEL:
# display_state = 'expanded'
display_state = 'expanded'
return f"""
<div id="{html.escape(headline.id)}" class="node {todo_state} {display_state}">