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

Make Markdown Preview render Front matters #733

Closed
GarytheNoob opened this issue Dec 30, 2022 · 1 comment · Fixed by #991
Closed

Make Markdown Preview render Front matters #733

GarytheNoob opened this issue Dec 30, 2022 · 1 comment · Fixed by #991
Labels
bug Something isn't working enhancement Idea of improvement of existing feature.
Milestone

Comments

@GarytheNoob
Copy link

What's the Problem?

The Markdown Preview Module is described as a GitHub-like render, but it goes wrong when rendering Front matters.
Front matters in GitHub will be rendered as tables. You can see what it is like here.

Solution/Idea

Let the Module render Front matters properly - just like GitHub.

Alternatives

Convert Front matter to table when rendering. Or even preserve it as code block in yaml.

Priorities

Capability Priority
The renderer will be able to render Front matters correctly Must
There will be a option to let the users decide whether to render the front matters Should
Preserve the Front matters and render them as code blocks Could

DevToys Version

Version 1.0.10.0 | X64 | RELEASE | b949a18 | b949a18

Comments

No response

@veler
Copy link
Collaborator

veler commented Dec 31, 2022

Hi,

Thanks for reporting this!

Note to myself:
Check out xoofx/markdig#579
It seems like updating MarkDig NuGet package and adding UseYamlFrontMatter may address the issue.

@veler veler added this to the v2.0 milestone Dec 31, 2022
@veler veler added bug Something isn't working enhancement Idea of improvement of existing feature. labels Mar 19, 2023
@veler veler linked a pull request Dec 4, 2023 that will close this issue
18 tasks
@veler veler closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Idea of improvement of existing feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants