MarkdownTextBlock: Complete 7x Feature Parity

Đang mở
#750 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu bằng cách so sánh triển khai MarkdownTextBlock hiện tại với các tham chiếu 7.1.2 được liên kết trong MarkdownTextBlock.Properties.cs, Dimensions.cs và Methods.cs. Xem xét năm tính năng còn lại, bắt đầu với việc port các property có độ phức tạp thấp hơn và đánh giá riêng phần tích hợp syntax highlighting. Được xem là hoàn thành khi các property và hành vi còn thiếu cung cấp đầy đủ mức tương đương 7.x đã được ghi chép.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Overview

The Windows Community Toolkit 7.x MarkdownTextBlock had a richer feature set than the current 8.x implementation. This issue tracks completion of feature parity by restoring missing properties and functionality.

7.x had 61 properties, 8.x baseline had 43 properties (18 properties missing). With PR #729 and existing capabilities, we've restored most of the gap.


Completed

8.x Baseline (Pre-PR #729)

The 8.x implementation launched with 32 properties:

  • Headers (18): Individual font sizes (H1-H6), font weights (H1-H6), margins (H1-H6)
  • Inline code (7): Background, border (brush/thickness), font family, foreground, margin, padding
  • New in 8.x (6): Config (MarkdownConfig), BaseUrl, ImageProvider/SVGRenderer, Padding, InternalMargin, CornerRadius
  • Functionality (1): IsTextSelectionEnabled (already implemented, verified in MarkdownTextBlock.Properties.cs lines 114-127, 224-228)
PR #729 Restorations

PR #729 achieved comprehensive styling parity, restoring 33 properties across all major markdown elements:

  • Code blocks (7): Background, border, font, foreground, margin, padding
  • Quotes (6): Background, border, foreground, margin, padding
  • Tables (4): Border, cell padding, margin
  • Lists (3): Bullet spacing, gutter width, margin
  • Paragraphs (2): Margin, line height
  • Horizontal rules (3): Brush, margin, thickness
  • Images (3): Max height/width, stretch mode
  • Links (1): Foreground color
  • Header colors (6): Individual foreground for H1-H6
  • YAML (2): Border brush, thickness

Missing Features

The following 5 properties from 7.x remain to be ported:

Syntax Highlighting
Text Wrapping
URI Customization
Emoji Font
Code Block Wrapping

Implementation Notes

Progress:

  • 7.x baseline: 61 properties
  • 8.x baseline: 43 properties (18 missing)
  • After PR #729 + IsTextSelectionEnabled: ~57 properties restored
  • Remaining: 5 properties for complete parity

Complexity: Only 1 HIGH complexity feature (syntax highlighting), 4 are straightforward property ports with LOW-MEDIUM complexity.

7.x Source: All references point to WindowsCommunityToolkit rel/7.1.2 for implementation guidance.

Ngôn ngữ chính
C#
Star
485
Fork
88
Merge trung bình
19 giờ 46 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommunityToolkit/Labs-Windows

Tất cả issue của CommunityToolkit/Labs-Windows

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.