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

            Bug ID: 441541
           Summary: Comments break preview
           Product: markdownpart
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kosse...@kde.org
          Reporter: geisse...@gmail.com
  Target Milestone: ---

SUMMARY
I usually put up a comment on top of my Markdown files, for copyright and
licensing information. However, this seems to break the markdownpart preview
generator.
In Markdown, commens are indicated by `<!--  -->`, with the comment text placed
in between the hyphens.

Example:
```markdown
<!-- SPDX-FileCopyrightText: 2021 Manuel Geißer <geisse...@gmail.com> -->
<!-- SPDX-License-Identifier: CC-BY-4.0 -->

# Test

Description

## Sec 1

* a
* b

## Sec 2

* c
* d
```

STEPS TO REPRODUCE
1. Paste the above example into Kate or KDevelop
2. Open the Preview panel
3. Click the play button
4. View result
5. Remove the two comment lines
6. View result

OBSERVED RESULT
With the comments, no preview is visible, only a single dot.
Without the comments, the preview looks correct.

EXPECTED RESULT
The preview should always represent the markdown code correctly, even if there
is a comment.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-27-generic (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
The described syntax works correctly with Github preview.

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

Reply via email to