Update markdown parsing to allow wiki links
Any link inside a item detail page's markdown description which does not have a URL will be assumed to be the name of an item covered by Crafting Guide and an URL will be added to reference the appropiate browse page.
This commit is contained in:
@@ -113,7 +113,7 @@ module.exports = class ItemPageController extends PageController
|
||||
return _.extend super,
|
||||
'click a.craftingPlan': 'routeLinkClick'
|
||||
'click .byline a': 'routeLinkClick'
|
||||
'click .markdown': 'routeLinkClick'
|
||||
'click .markdown a': 'routeLinkClick'
|
||||
'click button': 'craftingPlanButtonClicked'
|
||||
|
||||
# Private Methods ##############################################################################
|
||||
@@ -132,9 +132,9 @@ module.exports = class ItemPageController extends PageController
|
||||
description = @model.compileDescription()
|
||||
if description?
|
||||
@$descriptionPanel.html description
|
||||
@show @$descriptionPanel
|
||||
@show @$descriptionSection
|
||||
else
|
||||
@hide @$descriptionPanel
|
||||
@hide @$descriptionSection
|
||||
|
||||
_refreshRecipes: ->
|
||||
@_recipeControllers ?= []
|
||||
|
||||
Reference in New Issue
Block a user