fix: host ref in html-core renderer (#1021)

Fixing typo on: "server\modules\rendering\html-core\renderer.js"

Lines 40 and 41. Invalid reference to "WIKI.config.site.host" -- should be: "WIKI.config.host"

This was causing rendering issues when attempting to create some sample pages; such as: https://github.com/jbaez001/markdown-cheatsheet
This commit is contained in:
Juan Baez 2019-09-08 19:09:46 -06:00 committed by Nicolas Giard
parent 69e644e18f
commit 3ab7bcf8ea

View File

@ -37,8 +37,8 @@ module.exports = {
}
// -> Strip host from local links
if (isHostSet && href.indexOf(WIKI.config.site.host) === 0) {
href = href.replace(WIKI.config.site.host, '')
if (isHostSet && href.indexOf(WIKI.config.host) === 0) {
href = href.replace(WIKI.config.host, '')
}
// -> Assign local / external tag