Bug 480128

Summary: Preview with pandoc and filter don't support real time update
Product: [Applications] ghostwriter Reporter: hatchchien
Component: generalAssignee: megan.conkle
Status: CONFIRMED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: failing output

Description hatchchien 2024-01-21 10:44:32 UTC
Created attachment 165096 [details]
failing output

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Using Pandoc as the preview engine and the filter pandoc-plantuml-filter. If I paste a premade plantuml bloc, the preview is perfect. But if I edit the block, I get an image not found in the preview. However, I checked and Pandoc generated the image. I can find the picture in my personal directory


STEPS TO REPRODUCE
1. use the preview engine pandoc
2. add the custom parameter --filter pandoc-plantuml (with the filter installer and plantuml installed)
3. past the example : 
```plantuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
```
4. modify anything in the example which does not break UML syntax

OBSERVED RESULT

The diagram is not displayed, and instead you get a picture not found replacement. 

EXPECTED RESULT

Get the diagram updated and shown.