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

Trouble with links and Markdown #180

Open
JoeWard opened this issue Feb 14, 2012 · 7 comments
Open

Trouble with links and Markdown #180

JoeWard opened this issue Feb 14, 2012 · 7 comments
Milestone

Comments

@JoeWard
Copy link

JoeWard commented Feb 14, 2012

Simple links of the form ClassName and [ClassName methodName] appear to work fine, but when I try to use Markdown syntax to get "custom" link descriptions, I'm having trouble.

The format Link text works for links to the current class and its members, and to remote class names, but not remote class members.

This works:
Another class

But this does not:
[Another class method]([LinkReference referencedMethod])
Instead the link is malformed:
file:///Users/npl/testhelp/html/Classes/[[LinkReference%20referencedMethod]](../Classes/LinkReference.html#//api/name/referencedMethod

Similarly, I can't get the following Markdown cross ref syntax to work:

[To the class][1]

[1] LinkSource

This gives an error:
warning: Invalid [1]
[1] reference found near LinkSource.h@13, unknown object!
appledoc version: 2.0.5 (build 752)

The output is:
[To the class][1] [1] LinkSource

(The last "LinkSource" on the line is a link.)

I'm using the default command-line settings for link interpretation.

@tomaz
Copy link
Owner

tomaz commented Feb 17, 2012

Will check into this. This was working, but may have been broken with recent updates.

@tomaz
Copy link
Owner

tomaz commented Feb 23, 2012

Done some more testing and I know what's the problem, however it would require a bit more involved solution for which I don't have time at this point... This was working correctly while appledoc was doing its own Markdown processing, but after moving to third party library, I'd have to duplicate lots of functionality.

So for now, try and use "standard" cross referencing. I'll mark this as known bug for future reference.

@jasperblues
Copy link

+1

@tomaz
Copy link
Owner

tomaz commented Aug 25, 2012

Will be fixed as part of 3.0 release.

tomaz added a commit that referenced this issue Dec 6, 2012
…References #180.

This handles cases where users would use appledoc cross reference as link part of Markdown link. For example: `[desc](MyClass)` etc. Also links with titles: `[desc](MyClass "title")`. It also works for remote members: `[desc](-[MyClass method:])`.
@backslash-f
Copy link

+1

@NassarS
Copy link

NassarS commented Sep 13, 2013

We're seeing the same problem... http://docs.namomedia.com

You mentioned using "standard" cross referencing. How do we do that? Also, is there any way to turn off cross referencing altogether?

@tomaz
Copy link
Owner

tomaz commented Sep 14, 2013

There was some development in this direction so make sure you use the latest version from GitHub (+latest templates).

And yes, you can turn cross referencing off by either setting --crossref-format to something unusual (--crossref-format "~~~%@~~~" for example) or using --explicit-crossref which will only cross reference a word contained in <>.

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

No branches or pull requests

5 participants