mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-02 07:43:11 +03:00
🎨 Disabled auto-linking of domain names in markdown (#9084)
closes https://github.com/TryGhost/Ghost/issues/8987 - set `linkify-it` `fuzzyLink` option to false so that it only auto-links URLs starting with `http(s)://` or other valid schemes
This commit is contained in:
parent
b7e82f3b00
commit
b82932b492
@ -1,4 +1,4 @@
|
||||
var MarkdownIt = require('markdown-it'),
|
||||
var MarkdownIt = require('markdown-it'),
|
||||
converter = new MarkdownIt({
|
||||
html: true,
|
||||
breaks: true,
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user