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

Add support for markdown release notes #2319

Open
zorgiepoo opened this issue Feb 12, 2023 · 0 comments
Open

Add support for markdown release notes #2319

zorgiepoo opened this issue Feb 12, 2023 · 0 comments

Comments

@zorgiepoo
Copy link
Member

zorgiepoo commented Feb 12, 2023

Now that we have a plain text release notes view from #2315 it may make sense to add some subset of markdown support.

Foundation has an API for parsing markdown into an NSAttributedString on macOS 12 or later. It doesn't stylize the text for presentation however, so this would require reading all the presentation intents (NSPresentationIntent) to get things like indentation level, header level, ordinal, and walk through each of the parent intents.. Then creating an attributed string to present this to the text view (maybe using NSParagraphStyle, NSTextTab instances, bullet point characters, etc..). Old systems can fall back to showing plain text.

I don't want to pull in another markdown parser/library dependency so I think utilizing APIs from the OS makes sense.

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

No branches or pull requests

1 participant