Closed mariari closed 2 weeks ago
For the time being I can get around this in the project I work on, as I've made tooling that lets me control where articles are placed in the TOC if I so desire. And since only a few pages in that section have sub documents, it's workable.
@mariari thanks for the report, fixed on main :)
Environment
git rev-parse HEAD
if running with mix):Elixir 1.15.5 (compiled with Erlang/OTP 26)
Livebook 0.12.1
This works great except when I open up the document in which it serializes to:
Now if I edit the file by hand in the livebook editor (in firefox), to make it indent again, it saves the following to disk
However, if I close the page and reopen it, we get the following saved to disk again:
I believe this occurs because when
livebook
opens the file it normalizes the spacing and numbering, however since it normalizes the spacing, it only makes indent level3
have6
spacing instead of7
. And since10.
has 2 digits, it should have an indent of7
if iExpected behavior
To have sections nested past
10
to work properly.This can either be done by normalizing any section indented within a number to have an extra space for each spacing (My logic generating the TOC does this now), or by having 2 spaces auto indent without caring about the section's previous level.