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 an autolink extension for Markdown #334

Closed
wants to merge 2 commits into from

Conversation

jrlogsdon
Copy link
Collaborator

Exposes the autolink extension offered by the commonmark java library, to markdown rendering in Compose. Since links are already supported for processing and rendering, we only need to hookup the parserExtension to get this to work.

Exposes the autolink extension offered by the commonmark java library,
to markdown rendering in Compose. Since links are already supported
for processing and rendering, we only need to hookup the
parserExtension to get this to work.
@rock3r rock3r self-requested a review March 29, 2024 11:59
@rock3r rock3r added the feature New feature or request label Mar 29, 2024
Copy link
Collaborator

@rock3r rock3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first PR! I think it's a-ok, however I'd update the KDocs, and maybe also use the new extension in the standalone demo for funsies

@@ -14,20 +14,20 @@ public interface MarkdownProcessorExtension {
* A CommonMark [ParserExtension] that will be used to parse the extended
* syntax represented by this extension instance.
*/
public val parserExtension: ParserExtension
public val parserExtension: ParserExtension?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the KDocs to mention what the nullability means

@jrlogsdon jrlogsdon closed this Apr 1, 2024
@jrlogsdon
Copy link
Collaborator Author

Closing in favor of: #341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants