Skip to content

Commit

Permalink
Polishing journal table of contents help text
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Aug 3, 2024
1 parent 36f6873 commit 24e5b9f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gui/journal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
]=]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24e5b9f

Please sign in to comment.