Commit Graph

17 Commits

Author SHA1 Message Date
146f904866 chore: small tweaks 2024-01-12 01:30:52 +01:00
64396954e4 chore: dependency vendoring of markdownlint-rule-helpers 2024-01-12 01:30:52 +01:00
7ef7cc3bb3 refactor: early conditions first 2024-01-12 01:30:52 +01:00
68f35ddc0b fix: empty id fragment should be invalid 2024-01-12 01:30:52 +01:00
747203c23b fix: fragments checking should work in other elements than only anchor (e.g: <div>) 2024-01-12 01:30:52 +01:00
a5deae599a fix: ignore checking fragment in own file
We don't need to check if fragments are valid in own file.
It's already checked by the rule MD051 of markdownlint (else we have the error duplicated).
Ref: https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md
2024-01-12 01:30:52 +01:00
24a0788d32 feat: html anchor support 2024-01-12 01:30:52 +01:00
1ddcdc7b18 fix: cleaner code + better error messages 2024-01-09 23:20:17 +01:00
9cf3168e66 chore: better Prettier config for easier reviews 2023-10-23 23:11:41 +02:00
b0c27b3c3e build(deps): update latest
All checks were successful
Lint / lint (push) Successful in 54s
Test / test (push) Successful in 33s
2023-07-18 23:18:39 +02:00
a33c682974 feat: improve errors message to distinguish between file system and fragment errors 2023-06-27 13:15:03 +02:00
6c4e8cec9c feat: validate relative links fragments
Similar to https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md

Fixes #2

BREAKING CHANGE: Validate links fragments in relative links
2023-06-24 11:42:09 +02:00
c985af6156 fix: ignore absolute paths /absolute/path 2023-04-02 21:10:47 +02:00
b6b092dc1f fix: only detect file: protocol links
fixes #1
2023-01-06 18:37:40 +01:00
5dab1976d3 feat: validate link in image src 2023-01-02 19:45:46 +01:00
4adef29333 feat: add relative-links rule 2023-01-02 15:23:47 +01:00
221ded7d62 chore: initial commit 2023-01-02 15:23:16 +01:00