You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: left padding / margin for code blocks indented with tabs
## Details
Issue: #230
When adding inline spaces for padding or margin in code blocks tabs
would cause the spacing to not work. For example if a user wants left
padding of 2 but has tabstop set to 4 the 2 spaces added would be ignored
since they did not occupy enough space to shift the text.
To fix this when adding spaces to the left first check if the code block
contains any tabs. If it does instead of applying the spacing directly
find the next value that is a multiple of the users tabstop and use that.
From the previous example we would add 4 spaces now instead of 2. A
tabstop of 8 and a padding of 10 would result in 16 spaces.
0 commit comments