diff --git a/packages/guides-markdown/src/Markdown/MarkupLanguageParser.php b/packages/guides-markdown/src/Markdown/MarkupLanguageParser.php index 4885c5054..80de96b93 100644 --- a/packages/guides-markdown/src/Markdown/MarkupLanguageParser.php +++ b/packages/guides-markdown/src/Markdown/MarkupLanguageParser.php @@ -14,6 +14,7 @@ namespace phpDocumentor\Guides\Markdown; use League\CommonMark\Environment\Environment as CommonMarkEnvironment; +use League\CommonMark\Extension\Autolink\AutolinkExtension; use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; use League\CommonMark\Node\Block\Document; use League\CommonMark\Node\NodeWalker; @@ -45,6 +46,7 @@ public function __construct( ) { $cmEnvironment = new CommonMarkEnvironment(['html_input' => 'strip']); $cmEnvironment->addExtension(new CommonMarkCoreExtension()); + $cmEnvironment->addExtension(new AutolinkExtension()); $this->markdownParser = new MarkdownParser($cmEnvironment); } diff --git a/tests/Integration/tests/markdown/url-embedded-md/expected/index.html b/tests/Integration/tests/markdown/url-embedded-md/expected/index.html index c3af377a3..20071e5aa 100644 --- a/tests/Integration/tests/markdown/url-embedded-md/expected/index.html +++ b/tests/Integration/tests/markdown/url-embedded-md/expected/index.html @@ -5,7 +5,7 @@

Sample Markdown Document

See https://www.example.com for additional information.

-

See also https://www.example.com/more.

+

See also https://www.example.com/more.

diff --git a/tests/Integration/tests/markdown/url-embedded-md/input/skip b/tests/Integration/tests/markdown/url-embedded-md/input/skip deleted file mode 100644 index b6b58c398..000000000 --- a/tests/Integration/tests/markdown/url-embedded-md/input/skip +++ /dev/null @@ -1 +0,0 @@ -Embedded URLS are not linked \ No newline at end of file