File: embeds-with-autolinks-enabled.md

package info (click to toggle)
php-league-commonmark 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 8,264 kB
  • sloc: php: 20,396; xml: 1,988; ruby: 45; makefile: 21; javascript: 15
file content (40 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
enable_autolinks: true
---

This is an embed:

https://www.youtube.com/watch?v=dQw4w9WgXcQ

So is this, with only three spaces of indentation:

   https://www.youtube.com/watch?v=dQw4w9WgXcQ

This is not, because it's fully indented:

    https://www.youtube.com/watch?v=dQw4w9WgXcQ

This is not, because it has extra bits after the URL:

https://www.youtube.com/watch?v=dQw4w9WgXcQ <-- you gotta watch this!

This is not, because it's in a fenced code block:

```md

https://www.youtube.com/watch?v=dQw4w9WgXcQ

```

And this isn't either because it's inline: ![](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

Embeds can't be nested in other blocks:

- https://www.youtube.com/watch?v=dQw4w9WgXcQ
    - https://www.youtube.com/watch?v=dQw4w9WgXcQ

This isn't valid because it's a lazy paragraph continuation:
https://www.youtube.com/watch?v=dQw4w9WgXcQ

https://www.youtube.com/watch?v=dQw4w9WgXcQ
^ This is fine, though