mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
implemented {@linkplain}, {@linkcode}, monospaceLinks config (all links in monospace, false by default) and cleverLinks config (if true, links to symbols are monospace)
This commit is contained in:
parent
edb1be2a0d
commit
266d6c7a1f
@ -432,9 +432,6 @@ function toLink(longname, content, monospace) {
|
||||
}
|
||||
var monospaceLinks = env.conf.tags.monospaceLinks;
|
||||
var cleverLinks = env.conf.tags.cleverLinks;
|
||||
//console.log('monospaceLinks: ' + monospaceLinks);
|
||||
//console.log('cleverLinks: ' + cleverLinks);
|
||||
|
||||
|
||||
// Split into URL and content.
|
||||
// Has link text been specified {@link link|content}, e.g.
|
||||
|
||||
@ -8,13 +8,13 @@ function setConfTagsVariables(hash) {
|
||||
storage[keys[i]] = env.conf.tags[keys[i]];
|
||||
// works because hash[key] is a scalar not an array/object
|
||||
env.conf.tags[keys[i]] = hash[keys[i]];
|
||||
console.log(keys[i] + ': ' + env.conf.tags.keys[i] + ' (' + hash[keys[i]] + ')');
|
||||
//console.log(keys[i] + ': ' + env.conf.tags[keys[i]] + ' (' + hash[keys[i]] + ')');
|
||||
}
|
||||
return storage;
|
||||
}
|
||||
|
||||
function restoreConfTags(storage) {
|
||||
var keys = Object.keys(hash);
|
||||
var keys = Object.keys(storage);
|
||||
for (var i = 0; i < keys.length; ++i) {
|
||||
env.conf.tags[keys[i]] = storage[keys[i]];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user