| Summary: | folding bug when editing markdown | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | ghands |
| Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 21.04.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | https://invent.kde.org/frameworks/syntax-highlighting/commit/a49918bbce6edb8c03c28435787c7e4a0a732bf0 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
Unexpected Folding in Markdown
Source Markdown Code |
||
|
Description
ghands
2021-08-21 09:05:59 UTC
Created attachment 140903 [details]
Unexpected Folding in Markdown
Created attachment 140904 [details]
Source Markdown Code
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/251 Git commit a49918bbce6edb8c03c28435787c7e4a0a732bf0 by Jan Paul Batrina. Committed on 31/08/2021 at 14:34. Pushed by cullmann into branch 'master'. markdown.xml: End nested sub-headers fold regions when parent header is closed e.g. # H1 ## H2 ### H3 # H1 <-- All headers above should end here This is currently done using a hack, visible to users since part of the next header is included in the previous region (e.g. [### H3\n# H]1 is how the region above will be marked). In the future, a better solution would be to provide a mechanism to close multiple folding regions with a single rule. M +211 -199 autotests/folding/test.markdown.fold M +56 -44 autotests/html/test.markdown.dark.html M +56 -44 autotests/html/test.markdown.html M +12 -0 autotests/input/test.markdown M +56 -44 autotests/reference/test.markdown.ref M +25 -6 data/syntax/markdown.xml https://invent.kde.org/frameworks/syntax-highlighting/commit/a49918bbce6edb8c03c28435787c7e4a0a732bf0 |