MarkdownTextBlock: Complete 7x Feature Parity
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
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.cslines 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
- UseSyntaxHighlighting + CodeStyling (HIGH complexity)
- Enable/disable syntax highlighting with custom style configuration. Requires syntax highlighting engine integration.
- 7.x Reference:
MarkdownTextBlock.Properties.cslines 30-48, 361-378
Text Wrapping
- TextWrapping (LOW complexity)
- Control text wrap behavior in rendered markdown
- 7.x Reference:
MarkdownTextBlock.Dimensions.cslines 315-323, 658-662 |MarkdownTextBlock.Methods.csline 149
URI Customization
- UriPrefix + SchemeList (MEDIUM complexity)
- Custom URI prefix for relative links and allowed URI schemes for validation
- 7.x Reference:
MarkdownTextBlock.Properties.cslines 659-672 |MarkdownTextBlock.Methods.cslines 58-65
Emoji Font
- EmojiFontFamily (LOW complexity)
- Custom font family for emoji rendering
- 7.x Reference:
MarkdownTextBlock.Properties.cslines 475-479 |MarkdownTextBlock.Methods.csline 112
Code Block Wrapping
- WrapCodeBlock (LOW complexity)
- Enable/disable text wrapping in code blocks
- 7.x Reference:
MarkdownTextBlock.Properties.cslines 369-373 |MarkdownTextBlock.Methods.csline 154
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
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Labs-Windows
-
bug :bug:
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 80/100
CommunityToolkit/Labs-Windows#815 ·
-
bug :bug:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
CommunityToolkit/Labs-Windows#816 ·
-
bug :bug:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
CommunityToolkit/Labs-Windows#814 ·
-
experiment :test_tube:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CommunityToolkit/Labs-Windows#812 ·
-
ux :paintbrush:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
CommunityToolkit/Labs-Windows#808 · 1 bình luận ·
Tất cả issue của CommunityToolkit/Labs-Windows
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Facepunch/sbox-public#12305 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
分享 JVC DVD+RW 4.7G (铼德代工) 实测标定预设Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug keep-fresh
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Flow-Launcher/Flow.Launcher#4744 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flyingpie/windows-terminal-quake#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show the per-model weekly limitĐang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100