Bug 461549

Summary: bold or italic markdown does not show consistently when text starts or ends with a composed letter
Product: [Applications] ghostwriter Reporter: goebbe <christian.goebel>
Component: generalAssignee: megan.conkle
Status: CLOSED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot issue bold and italic with composed letters
Example md file for issue with bold italc and composed letters

Description goebbe 2022-11-07 14:35:18 UTC
Created attachment 153554 [details]
screenshot issue bold and italic with composed letters

SUMMARY
When using composed letters, depending on the position of the composed letter in a bold or italic text, the markdown shows/ does not show or spans between two bold/ italic words.


STEPS TO REPRODUCE
1.  Write words that contain composed letters, mark the word as bod or italic
2. Place composed letters at the start, in the middle or at the end of the words

OBSERVED RESULT
Word that contain composed letters are not always showing/ displaying the expected markdown. 
It seems to make a difference where the composed letter is located within a word. Composed letters at the start
or at the end of a word seems to lead to issues, displaying the markdown.  

If the composed letter is at the end of a word, the "*" directly following the composed letter, seems to be ignored. 

It seems like the code "recognizing" the start and end of Markdown and the code which renders the markdown are treating composed letters differently. 

EXPECTED RESULT
Markdown should consistently be recognized and rendered.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 21 CE 
Ghostwriter: 2.2 installed via flatpak
Qt Version: 5.15.3
Comment 1 goebbe 2022-11-07 14:36:07 UTC
Created attachment 153555 [details]
Example md file for issue with bold italc and composed letters
Comment 2 megan.conkle 2022-12-22 21:16:11 UTC

*** This bug has been marked as a duplicate of bug 461547 ***
Comment 3 goebbe 2023-04-20 06:17:53 UTC
There seem to be a couple of bug reports for composed letters (e.g. German umlauts, or French composed letters). 
Since all the bug reports have been closed, I tried to test the fix.

- build ghostwriter from source (as of 2023.04.20).
- download and open the example file, attached to this bug

Result: The issue seems not to be fixed - at least in my build. :-) 
(maybe the issue is caused by one of the dependencies, outside ghostwriter - but I didn't find a hint on what is responsible for the issue, in the closed reports) 

Should/ could the bug-report be reopened? 

For a very quick test, I paste a part of the example file, here: 

Issues when highlighting (bold/ italic) text that contains Umlauts or accents: 
*Überschrift* **Überschrift**   <- first italic, second bold
*ä* *ö* *ü* *ß* *á* *â* *à*     <- all italic
**ä** **ö** **ü** **ß** **á** **â** **à**    <- all bold
**aä** **aäa** **dö** should_be_normal **üadfafasd**   <- mix bold and normal text
**äa** **aäa** **äa** **öfö** **üadfafasd**    <- all bold?
**aäa** **äa** **aäa** **öfö** **üadfafasd**   <- all bold, including the markup?
**Whateverö** normal text **final word**       <- the first word in the line should be bold
**Whateverö** normal text **öfinal word**    <- bold normal bold
Comment 4 goebbe 2023-04-20 06:21:42 UTC
This bug is marked as duplicate. 
I guess this is the reason I cannot reopen, here. I will copy/paste my last comment and reopen the duplicate.