-
Notifications
You must be signed in to change notification settings - Fork 49
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
@see <namepath> not supported #98
Labels
Comments
Hi, thanks for the report! will look at it this evening.
|
Not sure how formal the spec for
var ddata = require('ddata');
exports.linkifyOrInlineLinks = linkifyOrInlineLinks;
/**
replaces {@link} tags with markdown links in the suppied input text.
if no links are found, then assume this is a valid link target.
*/
function linkifyOrInlineLinks (text, options) {
if (text) {
var links = ddata.parseLink(text);
if (links.length > 0) {
links.forEach(function (link) {
var linked = ddata._link(link.url, options)
if (link.caption === link.url) link.caption = linked.name
if (linked.url) link.url = linked.url
text = text.replace(link.original, '[' + link.caption + '](' + link.url + ')')
})
} else {
var linked = ddata._link(text, options)
text = '[' + linked.name + '](' + linked.url + ')';
}
}
return text
}
{{#if see~}}
{{#if (equal see.length 1)~}}
**See**: {{{linkifyOrInlineLinks see.[0]}}}
{{else~}}
**See**
{{#each see}}- {{{linkifyOrInlineLinks this}}}
{{/each}}
{{/if~}}
{{/if~}} |
Apologies for the delay! Yes, you're right - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docs
Input:
/** @see Class#method */
Output with jsdoc to markdown:
Should be:
I've been looking through the ddata source trying to work out how to make this change. Not entirely sure if this is a
jsdoc-parse
issue or admd
issue. Either way I'm happy to submit a PR.The text was updated successfully, but these errors were encountered: