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
jakewvincent
changed the title
Do not considere '#' as a title when '#' is in code tag
Feature: Do not consider # as a title when # is in code tag
Oct 25, 2023
jakewvincent
changed the title
Feature: Do not consider # as a title when # is in code tag
Bug: # is treated as a heading when it is in a code block
Jun 3, 2024
- Addresses issue #145
- Fixes folding and jump-to-section behavior
- If folding or jump-to-section is initiated with the cursor IN a code
block, the behavior will occur in the code block itself (i.e. the
cursor will jump to the next heading inside the code block, if there
is one, or it will fold the section inside of the code block)
This fix is related to issue #145. A new utility function is added which
checks whether the cursor is currently inside of a code block by
counting the instances of backticks before or after the cursor in the
buffer. If the cursor is in a code block, any headings (or things that
resemble headings, such as comments introduced by #) are ignored.
Hello,
The caractere '#' is considere like a title when it is present in a code section.
Exemple:
`# Test
In the code section, '#Exemple' is considere like a title:
Thank you
The text was updated successfully, but these errors were encountered: