Bug 467572

Summary: Kate Markdown Module Fully Broken [Regresson]
Product: [Applications] kate Reporter: John <kdelovaa>
Component: encodingAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: p.r.worrall, waqar.17a
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description John 2023-03-19 16:51:49 UTC
SUMMARY
If you try to preview your markdown text you see absolutely nothing, so you don't know if anything is OK. The markdown module is broken.


STEPS TO REPRODUCE
1. ctrl+shift+, ----> Plugins ---> Document Preview > ON
2. Tools ---> Mode ---> Markup ----> Markdown ON
3. View ---> Tool Views ---> Show Preview
4. Empty preview with text "No preview available". Not possible to examine output.

Fix regression (maybe other previews don't work either?)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch (not Manjaro)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Paul Worrall 2023-03-20 13:14:37 UTC
Is the Markdown Viewer KPart installed? (pacman -Q markdownpart)
Comment 2 John 2023-03-22 11:01:15 UTC
(In reply to Paul Worrall from comment #1)
> Is the Markdown Viewer KPart installed? (pacman -Q markdownpart)

Kate will not recognize (no preview) markdown .txt file, no matter what you set in Kate. One has to change the extension of the file from .txt to .markdown. Only then the options in Kate to treat the file as mardown will work. Otherwise kate will fail to regognize what file it is no matter what you tell it to do with the text file.
Comment 3 John 2023-03-22 11:01:20 UTC
Kate will not recognize (no preview) markdown .txt file, no matter what you set in Kate. One has to change the extension of the file from .txt to .markdown. Only then the options in Kate to treat the file as mardown will work. Otherwise kate will fail to regognize what file it is no matter what you tell it to do with the text file.
Comment 4 Waqar Ahmed 2023-03-22 12:09:00 UTC
> Kate will not recognize (no preview) markdown .txt file, 

That is correct and working as expected.