[GH-ISSUE #966] Bare url issue in v0.30.0 or v0.31.0 #571

Closed
opened 2026-03-03 01:28:07 +03:00 by kerem · 1 comment
Owner

Originally created by @Mister-Hope on GitHub (Sep 12, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/966

Error:

https://dlaa.me/markdownlint/#%25m%23%20ArtPlayer%0A%0A%23%23%20Demo%0A%0A%3Cscript%3E%0Aconst%20DANMAKU_API%20%3D%20%22https%3A%2F%2Fdanmu.u2sb.com%2Fapi%2Fartplayer%2Fv1%22%3B%0A%0A%2F%2F%20triggers%20the%20error%0Afunction%20a()%7B%0A%7D%0A%3C%2Fscript%3E%0A

Any empty line below a link syntax under script block

image

The worst thing is that this is fixable, so if any one add linter steps in commit hook, it can affect file content.

# ArtPlayer

## Demo

<script>
const DANMAKU_API = "https://danmu.u2sb.com/api/artplayer/v1";

</script>

Ok:

https://dlaa.me/markdownlint/#%25m%23%20ArtPlayer%0A%0A%23%23%20Demo%0A%0A%3Cscript%3E%0Aconst%20DANMAKU_API%20%3D%20%22https%3A%2F%2Fdanmu.u2sb.com%2Fapi%2Fartplayer%2Fv1%22%3B%0A%3C%2Fscript%3E%0A

# ArtPlayer

## Demo

<script>
const DANMAKU_API = "https://danmu.u2sb.com/api/artplayer/v1";
</script>
Originally created by @Mister-Hope on GitHub (Sep 12, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/966 Error: https://dlaa.me/markdownlint/#%25m%23%20ArtPlayer%0A%0A%23%23%20Demo%0A%0A%3Cscript%3E%0Aconst%20DANMAKU_API%20%3D%20%22https%3A%2F%2Fdanmu.u2sb.com%2Fapi%2Fartplayer%2Fv1%22%3B%0A%0A%2F%2F%20triggers%20the%20error%0Afunction%20a()%7B%0A%7D%0A%3C%2Fscript%3E%0A Any empty line below a link syntax under script block ![image](https://github.com/DavidAnson/markdownlint/assets/33315834/2c5a5640-acf5-40c9-992a-753ad56971c0) The worst thing is that this is fixable, so if any one add linter steps in commit hook, it can affect file content. ```md # ArtPlayer ## Demo <script> const DANMAKU_API = "https://danmu.u2sb.com/api/artplayer/v1"; </script> ``` Ok: https://dlaa.me/markdownlint/#%25m%23%20ArtPlayer%0A%0A%23%23%20Demo%0A%0A%3Cscript%3E%0Aconst%20DANMAKU_API%20%3D%20%22https%3A%2F%2Fdanmu.u2sb.com%2Fapi%2Fartplayer%2Fv1%22%3B%0A%3C%2Fscript%3E%0A ```md # ArtPlayer ## Demo <script> const DANMAKU_API = "https://danmu.u2sb.com/api/artplayer/v1"; </script> ```
kerem 2026-03-03 01:28:07 +03:00
Author
Owner

@Mister-Hope commented on GitHub (Sep 12, 2023):

The worst thing is that this is fixable, so if any one add linter steps in commit hook, it can affect file content.

@DavidAnson Could you check and fix this when you have time?

<!-- gh-comment-id:1715230268 --> @Mister-Hope commented on GitHub (Sep 12, 2023): > The worst thing is that this is fixable, so if any one add linter steps in commit hook, it can affect file content. @DavidAnson Could you check and fix this when you have time?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#571
No description provided.