File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
packages/guides-markdown/src/Markdown
tests/Integration/tests/markdown/url-embedded-md Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 14
14
namespace phpDocumentor \Guides \Markdown ;
15
15
16
16
use League \CommonMark \Environment \Environment as CommonMarkEnvironment ;
17
+ use League \CommonMark \Extension \Autolink \AutolinkExtension ;
17
18
use League \CommonMark \Extension \CommonMark \CommonMarkCoreExtension ;
18
19
use League \CommonMark \Node \Block \Document ;
19
20
use League \CommonMark \Node \NodeWalker ;
@@ -45,6 +46,7 @@ public function __construct(
45
46
) {
46
47
$ cmEnvironment = new CommonMarkEnvironment (['html_input ' => 'strip ' ]);
47
48
$ cmEnvironment ->addExtension (new CommonMarkCoreExtension ());
49
+ $ cmEnvironment ->addExtension (new AutolinkExtension ());
48
50
$ this ->markdownParser = new MarkdownParser ($ cmEnvironment );
49
51
}
50
52
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <h1>Sample Markdown Document</h1>
5
5
< p > See < a href ="https://www.example.com "> https://www.example.com</ a > for additional information.</ p >
6
6
7
7
8
- < p > See also < a href ="https://www.example.com/more "> https://www.example.com/more</ a > .</ p >
8
+ < p > See also < a href ="https://www.example.com/more "> https://www.example.com/more</ a > .</ p >
9
9
10
10
</ div >
11
11
<!-- content end -->
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments