wiki-server 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/page.coffee +3 -0
- package/package.json +1 -1
package/lib/page.coffee
CHANGED
|
@@ -296,6 +296,9 @@ module.exports = exports = (argv) ->
|
|
|
296
296
|
while (match = linkRe.exec(currentItem.text)) != null
|
|
297
297
|
if not collaborativeLinks.has(asSlug(match[1]))
|
|
298
298
|
collaborativeLinks.set(asSlug(match[1]), currentItem.id)
|
|
299
|
+
if 'reference' == currentItem.type
|
|
300
|
+
if not collaborativeLinks.has(currentItem.slug)
|
|
301
|
+
collaborativeLinks.set(currentItem.slug, currentItem.id)
|
|
299
302
|
catch err
|
|
300
303
|
console.log "METADATA *** #{wikiName} Error extracting links from #{currentIndex} of #{JSON.stringify(array)}", err.message
|
|
301
304
|
collaborativeLinks
|