قد يكون من المفيد إذا نقرنا على هذا الزر، ثم انتقلنا مباشرة إلى الاقتباس في المنشور المقتبس، وقمنا بتمييز الاقتباس.
أعلم أن زر القائمة المنسدلة الأيسر يمكنه أيضًا عرض الاقتباس المميز، ولكنه لا ينتقل مباشرة إلى الاقتباس، ويتعين علينا التمرير إلى المميز. عندما يكون المنشور المقتبس طويلاً، يكون التمرير مزعجًا بعض الشيء.
5 إعجابات
@Dotila_Li / @singpolyma لديّ بعض الأخبار الجيدة
remove-highlight-match-case ← highlight-quoted-text
merged 03:31PM - 20 Oct 26 UTC
Previously, expanding a quote showed the whole quoted post, and following a quot… e jumped to the top of the quoted post. Readers had to find the quoted part themselves, which is hard in long posts (https://meta.discourse.org/t/264559).
This change highlights the quoted text in both cases and scrolls to it.
- `highlightQuote` (in `lib/quote.js`) matches the quote against the post while ignoring whitespace, so bold, links, code and paragraph breaks don't break the match. It prefers whole words, and falls back to the longest matching start (at least 20 characters) when the post was edited after it was quoted.
- The quote text is read from the rendered quote when the user clicks, so content rewritten by decorators (e.g. local dates) matches the target post.
- Following a quote stores the text on the post stream (`quoteHighlights`). A `quote-highlight` cooked decorator highlights it whenever that post renders, and the jump uses a new `anchor` route option to land on the first highlight. Only the previous and new target posts re-render.
- `LockOn` now honours `scroll-margin-top`, which leaves a few lines of context above the highlight.
- Highlights dispatch a `beforematch` event so hidden content reveals itself: core opens `<details>` and the spoiler-alert plugin reveals spoilers.
Stacked on #44837.
5 إعجابات
singpolyma
(Stephen Paul Weber)
21 أكتوبر 2026، 2:06ص
5
رائع! تعمل القائمة المنبثقة بشكل مثالي، تمامًا كما كنت أتمنى. لكنني ألاحظ أن زر «الانتقال إلى المنشور المُقتَبَس» لا يبدو أنه يفعل شيئًا الآن؛ فهو يعيد تحميل الصفحة فقط ويُبقي موضع التمرير كما هو…
هل لديك طريقة يمكنني من خلالها إعادة إنتاج هذه المشكلة؟
إذا كنت بحاجة إلى بيئة اختبار، فلا تتردد في استخدام https://try.discourse.org
singpolyma
(Stephen Paul Weber)
21 أكتوبر 2026، 1:50م
7
تمكنت من إعادة إنتاج المشكلة هنا A quoting test for testing jump to quote - #3 by singpolyma - general - Discourse Demo . عند النقر على “الانتقال إلى المنشور المُقتبَس”، يبدو أن الصفحة تُحمَّل مرة أخرى وتبقى في نفس المكان.
إعجاب واحد (1)
شكرًا سأبحث في الأمر وأصلحه.
إعجاب واحد (1)
هل سيؤدي هذا أيضًا إلى توسيع الأقسام المنطوية إذا كان الاقتباس يقع ضمن أحد هذه الأقسام؟
لماذا لا تجرب بنفسك بدلاً من السؤال
إعجابَين (2)
لأنني في الماضي قيل لي ألا أنشئ منشورات فقط لاختبار الميزات.
إعجاب واحد (1)
هنا على ميتا، بالتأكيد - لكن أطلق العنان لخيالك على https://try.discourse.org
3 إعجابات
هل هناك سبب معين يمنعك من الإجابة على السؤال مباشرة؟ كان سيستغرق وقتًا أقل منك للإجابة بالطريقة التي أجبت بها مرتين.
وكذلك كان سيستغرق منك وقتًا أقل لتختبر ذلك بنفسك
إعجاب واحد (1)
هذا ليس صحيحًا على الإطلاق، إذ سيتعيّن عليّ إنشاء حساب جديد على https://try.discourse.org/ ، لكن لا بأس. أظن أنني سأكتشف الأمر بنفسي خلال بضعة أشهر عندما يصل التغيير إلى موقع أستخدمه بالفعل.
إعجاب واحد (1)