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

SonarCloud banners aren't rendered in README.org #1124

Closed
steinarb opened this issue Oct 31, 2017 · 3 comments
Closed

SonarCloud banners aren't rendered in README.org #1124

steinarb opened this issue Oct 31, 2017 · 3 comments

Comments

@kivikakk
Copy link
Contributor

This appears to be an issue with how Org mode itself works. Looking at the manual, it says:

The file: prefix is optional, as long as a known image type is used. Org-mode recognizes images by the file name suffix.

With these examples, note that it's just …/measure?…, and no suffix is available, so org-mode just renders it as a plain link. Happily, I've discovered the following hack works fine:

[[https://sonarcloud.io/dashboard/index/no.priv.bang.ukelonn%3Aparent][file:https://sonarcloud.io/api/badges/measure?key=no.priv.bang.ukelonn%3Aparent&metric=lines#.svg]]

Just adding #.svg at the end is enough for the parser to treat it as an image (without, I think, affecting the end result).

@steinarb
Copy link
Author

steinarb commented Nov 1, 2017

The workaround worked fine! Thanks! :-)

The results can be viewed at:
https://github.com/steinarb/ukelonn/tree/work/use-liquibase#status

@kivikakk
Copy link
Contributor

kivikakk commented Nov 2, 2017

Awesome, I'm glad! :) (wow that's a lot of badges!)

@kivikakk kivikakk closed this as completed Nov 2, 2017
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

2 participants