Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Configure showdown with openLinksInNewWindow option so that target='_blank' is added to all links in layer metadata/stories when md files are converted to html

Jason Kent00b4abfbed26
diff --git a/tasks/config.js b/tasks/config.js
index c388e3db0..112afe04f 100755
--- a/tasks/config.js
+++ b/tasks/config.js
@@ -6,7 +6,7 @@ const showdown = require('showdown');
const shell = require('shelljs');
console.log('Converting markdown to html');
-let converter = new showdown.Converter();
+let converter = new showdown.Converter({ openLinksInNewWindow: true });
let configFiles = glob.sync('build/options/config/metadata/**/*.md');
for (let configFile of configFiles) {