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:
mathematicalcoffee 2012-11-26 21:27:59 +10:00
parent edb1be2a0d
commit 266d6c7a1f
2 changed files with 2 additions and 5 deletions

View File

@ -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.

View File

@ -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]];
}