markdown code fences - mariadb language as alias to mysql #8344

Closed
opened 2025-11-02 08:03:10 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @hrvoj3e on GitHub (Jan 12, 2022).

Gitea Version

1.16.0

Operating System

Linux

Browser Version

Chrome 96 on Linux

Can you reproduce the bug on the Gitea demo site?

Yes

Description

SELECT z.label FROM mytable AS z WHERE id=1;
-- should highlight the same as mysql above
SELECT z.label FROM mytable AS z WHERE id=1;

Html that renders from Gitea

<pre><code class="chroma language-mariadb">
SELECT z.label FROM mytable AS z WHERE id=1;
</code></pre>

Screenshots

image

Originally created by @hrvoj3e on GitHub (Jan 12, 2022). ### Gitea Version 1.16.0 ### Operating System Linux ### Browser Version Chrome 96 on Linux ### Can you reproduce the bug on the Gitea demo site? Yes ### Description - https://try.gitea.io/lfaoanl/test/issues/1 - https://github.com/alecthomas/chroma/issues/590 ```mysql SELECT z.label FROM mytable AS z WHERE id=1; ``` ```mariadb -- should highlight the same as mysql above SELECT z.label FROM mytable AS z WHERE id=1; ``` Html that renders from Gitea ```html <pre><code class="chroma language-mariadb"> SELECT z.label FROM mytable AS z WHERE id=1; </code></pre> ``` ### Screenshots ![image](https://user-images.githubusercontent.com/4988133/149167208-c61ac21a-f541-4310-9104-a0da9271fa48.png)
GiteaMirror added the type/upstream label 2025-11-02 08:03:10 -06:00
Author
Owner

@hrvoj3e commented on GitHub (Jan 16, 2022):

Upstream solved this. Please pull new version for next release.

@hrvoj3e commented on GitHub (Jan 16, 2022): Upstream solved this. Please pull new version for next release. - https://github.com/alecthomas/chroma/pull/595
Author
Owner

@wxiaoguang commented on GitHub (Jan 16, 2022):

We have a PR for upgrading Chroma.

Let's follow it.

@wxiaoguang commented on GitHub (Jan 16, 2022): We have a PR for upgrading Chroma. * https://github.com/go-gitea/gitea/pull/18270 Let's follow it.
Author
Owner

@hrvoj3e commented on GitHub (Jan 19, 2022):

It seems they have not included this in 0.10.0 release. Don't know why.

https://github.com/alecthomas/chroma/blob/v0.10.0/lexers/m/mysql.go

@hrvoj3e commented on GitHub (Jan 19, 2022): It seems they have not included this in 0.10.0 release. Don't know why. https://github.com/alecthomas/chroma/blob/v0.10.0/lexers/m/mysql.go
Author
Owner

@wxiaoguang commented on GitHub (Jan 20, 2022):

That change hasn't been released in Chroma. As discussed in #18270 , we merge 0.10.0 now, and once Chroma has a new release, we will update again then.

@wxiaoguang commented on GitHub (Jan 20, 2022): That change hasn't been released in Chroma. As discussed in #18270 , we merge 0.10.0 now, and once Chroma has a new release, we will update again then.
Author
Owner

@lunny commented on GitHub (May 25, 2022):

Put this to v1.18.0 but put back once Chroma released v2.0.0

@lunny commented on GitHub (May 25, 2022): Put this to v1.18.0 but put back once Chroma released v2.0.0
Author
Owner

@wxiaoguang commented on GitHub (Oct 26, 2022):

done

49a4e4555a/go.mod (L18)

@wxiaoguang commented on GitHub (Oct 26, 2022): done https://github.com/go-gitea/gitea/blob/49a4e4555a8af51f5a83ee321607c328930c070e/go.mod#L18
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8344