Bug 431268 - [jira] doesn't highlight bold or italic words
Summary: [jira] doesn't highlight bold or italic words
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: 5.98.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-07 16:26 UTC by moshpirit
Modified: 2022-11-05 13:50 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Bold highlight not working at start of line (12.13 KB, image/png)
2022-10-06 07:32 UTC, Lassi Väätämöinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moshpirit 2021-01-07 16:26:53 UTC
Kate has great variety of syntax highlights and they work great, but I love using Markdown and I don't like using kate that much with M↓ because it doesn't highlight some of the basic things such as italic or bold words.

I think it would be great to see bold and italics on Kate
Comment 1 Nibaldo G. 2021-01-16 05:38:15 UTC
Could you give more details about the problem?

Markdown syntax highlighting does highlight bold and italics (for example, **bold**, __bold__, *italic*). Perhaps the problem is because the font you are using in Kate doesn't have bold and italic variants.

* Check if bold and italics are highlighted in other syntax highlighters. For example, in C++ or JavaScript keywords like "if", "while" are highlighted in bold.
* Indicate the version of KDE Frameworks you are using (In Kate, go to: Help -> About Kate -> Libraries)
* Indicates the type of font used (go to: Settings -> Configure Kate... -> Apperance -> Fonts).

Here is an example file of the Markdown highlighting: https://kate-editor.org/syntax/data/html/test.markdown.html
Comment 2 Lassi Väätämöinen 2022-10-06 07:32:11 UTC
Created attachment 152609 [details]
Bold highlight not working at start of line

Kate Version 19.12.3

KDE Frameworks 5.68.0
Qt 5.12.8 (built against 5.12.8)
The xcb windowing system

Looks like the *bold* highlighting for Jira syntax does not work for words right at the start of line. Could it be confused with a bullet point by the hilight engine?

As a comparison, _italic_ works fine.
Comment 3 Christoph Cullmann 2022-11-05 13:50:31 UTC
Git commit c4c3cb9842404aec1dd645cf08107dd0310ce00a by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 05/11/2022 at 13:50.
Pushed by cullmann into branch 'master'.

Jira: fix Bold and Stroked Out highlight at start of line

M  +2    -2    autotests/html/highlight.jira.dark.html
M  +2    -2    autotests/html/highlight.jira.html
M  +2    -2    autotests/reference/highlight.jira.ref
M  +1    -1    data/syntax/jira.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/c4c3cb9842404aec1dd645cf08107dd0310ce00a