Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a Renderer problem related to markdown table #193

Merged
merged 4 commits into from
Jul 11, 2024
Merged

Fix a Renderer problem related to markdown table #193

merged 4 commits into from
Jul 11, 2024

Conversation

LiAuTraver
Copy link
Contributor

@LiAuTraver LiAuTraver commented Jun 11, 2024

There's a problem when using the Community Toolkit: it seems that the markdown format table wasn't rendered correctly. In the YAML-Markdown:

the Code behind .\CommunityToolkit.App.Shared\Renderers\ToolkitDocumentationRenderer.xaml.cs wasn't correct when discarding the YAML part. It uses delimiter "---" so the table was teared apart while parsing.
to fix this, modified the parse function for discarding YAML part while not affecting markdown content below.

All markdown files in main repo (components/Extensions/samples) have been examined, and no other problems or breaks were found. The fix was tested using the CommunityToolkit.App.Uwp (Universal Windows) application, and it rendered the tables correctly.

Before:
image

After:
image

No other incompatibility or effects have been spotted when testing myself.

@LiAuTraver
Copy link
Contributor Author

LiAuTraver commented Jun 11, 2024

@dotnet-policy-service agree

@Arlodotexe Arlodotexe enabled auto-merge (squash) July 11, 2024 17:54
@Arlodotexe Arlodotexe merged commit bc976cb into CommunityToolkit:main Jul 11, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants