-
Notifications
You must be signed in to change notification settings - Fork 201
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
tag-like (but not valid HTML tag) text should be escaped #596
Comments
I don't think this is a bug. I think this is working as expected. Most CommonMark-compliant Markdown implementations do not escape |
/cc @jonasfj I'm not sure what's the best strategy would be here, but maybe we could apply an escaping before running it through HTML sanitization? |
cc @kallentu I think we should just be linting text like this, that is reported by the analyzer. This text should just be in backticks. |
In backticks or brackets if you want to link to the types, right/maybe? |
Ehhhh. 😁 The formats that the analyzer accepts in square brackets is a short list 😦 . Basically But yes, "in backticks or brackets." |
Uh, I guess that makes sense. |
As an FYI, it appears that using:
Notice the Will trick the system into creating html that displays correctly on Github and pub.dev |
@faithoflifedev: I think it may produce an |
Hi @isoos, I originally opened the Issue #7557 that led to this discussion. If I understand your question correctly then you should see an example here - https://pub.dev/packages/google_vision/versions/1.2.0+6#new-helper-methods - you can campare this with - https://pub.dev/packages/google_vision/versions/1.2.0+5#new-helper-methods - where in the first link the HTML is rendered as would be expected by the user (i.e. |
@faithoflifedev: to be clear, the linked page source has |
@isoos, understood - my initial problem was the HTML render difference between pub.dev and github.com, which can be resolved with the workaround. From my perspective there's no need for me to pursue this. From an overall end-user perspective there may be a perception that a README on github.com will render the same on pub.dev, I'll leave that up to the "collective" you to resolve as you see fit 😄 |
Markdown version: 7.2.2 using
GitHubWeb
extension set.Originally reported: dart-lang/pub-dev#7559
Input:
Output:
Expected:
<EntityAnnotation>
is also escaped to<EntityAnnotation>
.The text was updated successfully, but these errors were encountered: