docs icon indicating copy to clipboard operation
docs copied to clipboard

Support diff / patch syntax highlighting

Open fflorent opened this issue 3 weeks ago • 1 comments

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.

fflorent avatar Nov 12 '25 15:11 fflorent