mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Allow other whitespace between @link and content
This commit is contained in:
parent
f90f631980
commit
6b7125b33e
@ -448,7 +448,7 @@ var toTutorial = exports.toTutorial = function(tutorial, content, missingOpts) {
|
||||
|
||||
/** Find symbol {@link ...} and {@tutorial ...} strings in text and turn into html links */
|
||||
exports.resolveLinks = function(str) {
|
||||
str = str.replace(/(?:\[(.+?)\])?\{@link(plain|code)? +(.+?)\}/gi,
|
||||
str = str.replace(/(?:\[(.+?)\])?\{@link(plain|code)?\s+(.+?)\}/gi,
|
||||
function(match, content, monospace, longname) {
|
||||
if (monospace === 'plain') {
|
||||
monospace = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user