From 24e5b9ff09ced7652751ad8974b26222861c0df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Obr=C4=99bski?= Date: Sat, 3 Aug 2024 21:39:57 +0200 Subject: [PATCH] Polishing journal table of contents help text --- gui/journal.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gui/journal.lua b/gui/journal.lua index 6222f5370..6fb1514de 100644 --- a/gui/journal.lua +++ b/gui/journal.lua @@ -24,7 +24,14 @@ Happy digging! ]=] local TOC_WELCOME_COPY = [=[ -Start a line with # symbols and a space to create header. +Start a line with # symbols and a space to create a header. For example: + +# My section heading + +or + +## My section subheading + Those headers will appear here, and you can click on them to jump to them in the text. ]=] @@ -201,7 +208,7 @@ function JournalWindow:loadConfig() local table_of_contents = copyall(journal_config.data.toc or {}) table_of_contents.width = table_of_contents.width or 20 - table_of_contents.visible = table_of_contents.visible or true + table_of_contents.visible = table_of_contents.visible or false return window_frame, table_of_contents.visible, table_of_contents.width or 25 end