Markdown: Syntax highlighting fails with escaped double quotes #1746

Closed
opened 2025-11-02 04:12:03 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @orbea on GitHub (May 1, 2018).

Description

With shell scripts syntax highlighting fails when encountering an escaped double quote (\") causing following code to be incorrectly highlighted. This is very distracting and instead of making the code easier to read, the syntax highlighting makes it harder to read. Please see the try.gitea.io example link for a test case.

Screenshots

test

Originally created by @orbea on GitHub (May 1, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/yooooo/test/src/branch/master/burn) - [ ] No - [ ] Not relevant - Log gist: ## Description With shell scripts syntax highlighting fails when encountering an escaped double quote (`\"`) causing following code to be incorrectly highlighted. This is very distracting and instead of making the code easier to read, the syntax highlighting makes it harder to read. Please see the try.gitea.io example link for a test case. ## Screenshots ![test](https://i.imgur.com/o7Edsch.png)
GiteaMirror added the topic/uiissue/confirmedtype/bug labels 2025-11-02 04:12:03 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 27, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 27, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@orbea commented on GitHub (Jan 27, 2019):

This issue is still current.

@orbea commented on GitHub (Jan 27, 2019): This issue is still current.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1746