Skip to content

Commit

Permalink
馃帹 Disabled auto-linking of domain names in markdown (#9084)
Browse files Browse the repository at this point in the history
closes #8987

- set `linkify-it` `fuzzyLink` option to false so that it only auto-links URLs starting with `http(s)://` or other valid schemes
  • Loading branch information
kevinansfield authored and kirrg001 committed Oct 3, 2017
1 parent b7e82f3 commit b82932b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/server/utils/markdown-converter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var MarkdownIt = require('markdown-it'),
var MarkdownIt = require('markdown-it'),
converter = new MarkdownIt({
html: true,
breaks: true,
Expand Down Expand Up @@ -44,6 +44,11 @@ var MarkdownIt = require('markdown-it'),
// jscs:enable
});

// configure linkify-it
converter.linkify.set({
fuzzyLink: false
});

module.exports = {
render: function (markdown) {
return converter.render(markdown);
Expand Down

0 comments on commit b82932b

Please sign in to comment.