https://bugs.kde.org/show_bug.cgi?id=442025

            Bug ID: 442025
           Summary: Invalid code in Markdown code fences breaks formatting
                    outside of code fences
           Product: kate
           Version: 19.12.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kde-2011...@dotancohen.com
  Target Milestone: ---

When opening a Markdown document in Kate, invalid code inside code fences
causes improper formatting of text after the end of the code fence.


STEPS TO REPRODUCE
1. Create a file with the following text, not including the `----` markers:
----
# Invalid code sample

```php
$foobar = "Foo bar";
```

# This is another heading

This is another nice line of text.
----

2. Save as demo.md
3. Note formatting, specifically consistent colours on heading lines.
4. Remove one of the double quote characters from the string assignment line.

OBSERVED RESULT
Formatting of text after closing code fence is changed.

EXPECTED RESULT
Formatting of text after closing code fence should not change.

No matter how bad the code inside the fences is, it should not affect the
formatting of text outside the fences. This is especially important when
opening a file specifically used to document invalid code.

KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to