diff --git a/scripts/generate.py b/scripts/generate.py index 31b051b..e343401 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -445,7 +445,7 @@ def render_as_document(headline, doc, headlineLevel, title): Sending you to the main note... [{org_rw.token_list_to_plaintext(topLevelHeadline.title.contents)}] - """ + """ else: return as_document(render(headline, doc, headlineLevel), title) @@ -482,13 +482,16 @@ def render(headline, doc, headlineLevel): # display_state = 'expanded' display_state = 'expanded' + title = render_inline(headline.title, render_tag) + + if headlineLevel > 0: + title = f"{title}" + return f"""

{state} - - {render_inline(headline.title, render_tag)} - + {title} {tags}