دمج الخلايا في جداول Markdown

I am trying to make some fancyish tables in a Discourse post and cant seem to get it to work. In a nut shell I want to merge some cells to place multiple cells underneath or similar. Is this possible?

This is my syntax

| | Grouping ||
First Header | Second Header | Third Header |
------------ | :-----------: | -----------: |
Content | Long Cell ||
Content | Cell | Cell |

This is what I get

| | Grouping ||

First Header Second Header Third Header
Content Long Cell
Content Cell Cell

This is what I am trying to do

image

Any advice is appreciated!

That seems like a copy paste of multimarkdown example.

And I think Discourse is using markdown.it. Therefore not possible to do in Discourse.

أبحث عن حل للحاجة إلى دمج خلايا الجدول في المنتدى، وذلك لتحسين واجهة العرض. بالإضافة إلى السماح بإضافة صور إلى الجدول. ثم وجدت مقدمة لـ jekyll-spaceship
الرابط: https://stackoverflow.com/questions/46621765/can-i-merge-table-rows-in-markdown

فهل قام أي شخص بدمجه في جوهر discourse؟ ليس بعد؟

إعجاب واحد (1)

لا يمكن ذلك حاليًا، ولا يدعم Discourse سمات colspan أو rowspan لعناصر <td> و <th>. لا أعتقد أن هذا مدرج في خارطة الطريق أيضًا.

من الممكن أن تتمكن من إضافة الدعم لهذا باستخدام إضافة مخصصة. انظر: Whitelisting HTML tags / attributes

قائمة عناصر HTML المدعومة موجودة هنا: https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/allow-lister.js#L115. تبدو علامات الجدول هنا: https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/engines/discourse-markdown/table.js

ربما يكون هذا مفيدًا.

إذا كنت ترغب في طلب السماح بسمات colspan أو rowspan في الإصدار الأساسي، فقد ترغب في إنشاء موضوع Feature جديد. :slight_smile:

إعجابَين (2)

شكراً لك، سأشير إلى عينة المقالة في ميزة الفئة للحصول على توصية واضحة

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.