Skip to content

Commit 53bf47d

Browse files
committed
Fix Test Failure
1 parent e49094c commit 53bf47d

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ with the exception that 0.x versions can break between minor versions.
1616
| `URL` | Yes | URL with a protocol such as `https://example.com` |
1717
| `EMAIL` | Yes | Email address such as `[email protected]` |
1818
| `WWW` | Yes | Address beginning with `www` such as `www.example.com` |
19+
20+
Note that This changes the behavior of `AutolinkExtension.create()` to now also
21+
include `WWW` links by default. To re-enable the previous behavior, use:
1922

20-
> [!NOTE]
21-
>
22-
> This changes the behavior of `AutolinkExtension.create()` to now also include
23-
> `WWW` links by default. To re-enable the previous behavior, use:
24-
>
25-
> ```java
26-
> AutolinkExtension.builder().linkTypes(AutolinkType.URL, AutolinkType.EMAIL).build();
27-
> ```
23+
```java
24+
AutolinkExtension.builder().linkTypes(AutolinkType.URL, AutolinkType.EMAIL).build();
25+
```
2826

2927
## [0.26.0] - 2025-09-13
3028
### Changed

commonmark-ext-autolink/src/test/java/org/commonmark/ext/autolink/AutolinkTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void dontLinkTextWithinLinks() {
6666
@Test
6767
public void wwwLinks() {
6868
assertRendering("www.example.com",
69-
"<p><a href=\"https://www.example.com\">www.example.com</a></p>\n");
69+
"<p><a href=\"http://www.example.com\">www.example.com</a></p>\n");
7070
}
7171

7272
@Test

0 commit comments

Comments
 (0)