Comment formatting on bugs.kde.org?

Hi,

The commenting field on bugs dot kde dot org features both a comment tab and a preview tab, which implies that some formatting is supported, but what kind of formatting ? :thinking:

I tried Markdown but didn’t notice anything getting formatted, except for something weird with quotes being turned into code blocks with the > symbol remaining visible. :person_shrugging:

I also tried finding out what webapp is bugs dot kde dot org running so I could find out in its documentation, but it’s never mentioned in the footer nor linking to something like an “about” page, not even in preferences.

PS : I’m writing “bugs dot kde dot org” because for some reason the real thing is considered a “link” and forbidden to submit.

Thanks

1 Like

Mostly just quotes using >, unfortunately.

There’s also some special formatting if you type Bug: 123456 and Comment 1.

1 Like

Okay.

It looks more like a code block rather than a quote though.

@KaKi87, it is indeed. It’s Bugzilla-specific syntax - to a Markdown author, it doesn’t make much sense. However, it does disable word wrap, so it functions like a <pre>.


Unfortunately, it’s not even converted into semantic HTML:

test 1

> block

test 2

…becomes:

<pre id="comment_preview_text" class="bz_comment_text">test 1

<span class="quote">&gt; block</span>

test 2</pre>

…instead of the expected:

<P>test 1</P>
<blockQuote><P>block</P></blockQuote>
<P>test 2</P>

…(or whatever actually is correct - I’m not a brilliant web developer).

It might be caused by the old Bugzilla version that KDE is running, since Harmony isn’t ready yet for production systems. Perhaps test whether Log in to Bugzilla does it correctly.


Luckily, in Mozilla’s bugzilla instance, which Harmony should be catching up with (because they develop it, to my knowledge) Markdown is supported.

1 Like

Oh, so BugZilla is the webapp that runs bugs dot kde dot org, thanks.

1 Like

Yes, @KaKi87 - Bugzilla 5.0.6, per its REST API. [1]


  1. https://poe.com/s/9rzluGbVR20DdNp3Wzfu#:~:text=API:%20If%20the,http://<your-bugzilla-url>/rest/version ↩︎

Hmm, it would be nice to have that information visible to end users though, for example with a “powered by Bugzilla 5.0.6” mention in the footer.

@KaKi87, some instances certainly provide that - https://bugzilla.kernel.org/ is an example.