Skip to content

Support diff / patch syntax highlightingย #1585

@fflorent

Description

@fflorent

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.
Currently when using a code block, we have plenty languages supported.

But I have not found how to colorize patch / diff content.

Describe the solution you'd like
I would like a way to render colorized diff block, just like in github when using ```diff:

From aba79593443243fd5156b4edbf1025835ba67682 Mon Sep 17 00:00:00 2001
From: Cyril <[email protected]>
Date: Tue, 28 Oct 2025 13:56:44 +0100
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20fix=20pdf=20embed=20to=20?=
 =?UTF-8?q?use=20full=20width?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Cyril <[email protected]>
---
 CHANGELOG.md                                                  | 2 ++
 .../docs/doc-editor/components/custom-blocks/PdfBlock.tsx     | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 152a39463..d6a500953 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to
   - โ™ฟ(frontend) improve accessibility and styling of summary table #1528
 - ๐Ÿ›(docx) fix image overflow by limiting width to 600px during export #1525
 - ๐Ÿ›(frontend) preserve @ character when esc is pressed after typing it #1512
+- ๐Ÿ›(frontend) fix pdf embed to use full width #1526
 
 ## [3.9.0] - 2025-11-10

Describe alternatives you've considered
I use plain text in the meantime, but syntax highlighting is more convenient.

Discovery, Documentation, Adoption, Migration Strategy
None I guessโ€ฆ

Do you want to work on it through a Pull Request?
OK with that, when I have time, I guess that would not be much work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions