stable

Clone or download

Read-only

Enable the automatic creation of links in Markdown content

Users might expect it if they were using "Text" format before the introduction of Markdown format. The Autolink extension coming with league/commonmark has not been used to reduce its scope a bit: * autolinking ftp:// URLs is probably not the way to go nowadays since browsers remove its built-in support * disabled the automatic creation of links for emails, in the Tuleap context the @<username> should probably be preferred In any cases, users can still create whatever links they want. Part of story #18337: markdown replace text Change-Id: Ib941b6d9d6326503d7e373dba7bf52ce63fe0b11

Modified Files

Name
A src/common/Markdown/AutolinkExtension.php +36 −0 Go to diff View file
M src/common/Markdown/CommonMarkInterpreter.php +1 −0 Go to diff View file
A tests/unit/Tuleap/Markdown/AutolinkExtensionTest.php +68 −0 Go to diff View file