-
Notifications
You must be signed in to change notification settings - Fork 138
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
Link to user profile in markdown #87
Comments
If the purpose is to replace We should add a plugin to flutter_markdown to identify the |
Yeah, it is a legacy todo. We should open an issue for this: Add |
Oh, I missed this replacement process. This might also work but it seems more common to write a plugin for flutter_markdown |
Sorry, I don't exactly understand. I've never written one before. By plugin do you mean, I use |
For examples see: https://pub.dev/packages/markdown#syntax-extensions |
There is also a legacy issue related to this: Rendering |
Consider comment_item.
I'm trying to add a link to the profile. For example, @shreyas1599 should link to my profile. I used a simple regex to do this:
body.replaceAllMapped(new RegExp(r"@[^\s]+"), (match) { return "[${match[0]}](https://github.com/${match[0] })";
A couple of questions:
markdown_view.dart
or leave it incomment_item.dart
itself?github
prefix. For now, I could just push the relative path.router.dart
you've added a TODO: /github.github
or just push the relative path for now? Something like this:return Provider.of<ThemeModel>(context).push(context, "/${m['login']}");
/github
and then implement the above.@pd4d10 I'd like your opinion on this. Thanks.
The text was updated successfully, but these errors were encountered: