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
pull/1066/head
Juan Baez 5 years ago committed by Nicolas Giard
parent 69e644e18f
commit 3ab7bcf8ea

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

Loading…
Cancel
Save