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

#resource- broken in links #287

Open
JulienPalard opened this issue Apr 1, 2016 · 2 comments
Open

#resource- broken in links #287

JulienPalard opened this issue Apr 1, 2016 · 2 comments

Comments

@JulienPalard
Copy link

I have a schema with some depth (like a user with an attribute thumbnail being a $ref to an image schema), an article having an author attribute iself being a user...

The generated markdown for the attribute table looks like:

 **[author:thumbnail:URL](#resource-date)** | *uri* | URL to an image file ...

The problem is the #resource-date is clearly false here, and in all my Attributes table they are "randomized".

No so randomized, in fact their quantities are right (if I have 6 attributes for the thumbnail (an image) of a user, I have 6 #resource-image, but in the wrong place.

Also (probably the same bug) some attributes does NOT have links on some cases they should have, and some which should not have (local strings) may have links.

@geemus
Copy link
Member

geemus commented Apr 4, 2016

The links are relatively new, so it sounds as though some edge cases just need more attention. The misdirection seems clear enough, could you provide a bit more detail on places where you expect links (or not) and aren't getting what you expect?

@geemus
Copy link
Member

geemus commented Apr 4, 2016

Actually, could you provide a specific example around the mis-linking as well? Pretty sure I've narrowed it down (https://github.com/interagent/prmd/blob/master/lib/prmd/templates/schemata.md.erb#L28), but having something specific would help be more certain.

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