mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05: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 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue