21 Commits

Author SHA1 Message Date
8a449ad181 feat: add root_path config option (#14)
Fixes #12
2025-05-27 08:47:03 +02:00
876384344c feat: add support for markdownlint v0.38.0 2025-05-11 16:45:14 +02:00
aa24db4fac feat: usage of ESM modules imports (instead of CommonJS)
Fixes #10

BREAKING CHANGE: This package is now pure ESM

BREAKING CHANGE: minimum supported Node.js >= 22.0.0
2024-12-28 22:52:51 +01:00
85f465306f feat: stricter validation of heading fragments by being Case sensitive
Fixes #8

BREAKING CHANGE: Heading fragments is now Case sensitive.
For example "#ExistIng-Heading" is invalid as it should be "#existing-heading".
2024-05-27 22:50:43 +02:00
450cdb84f0 feat: support columns numbers (and line range) in links fragments
Fixes #7
2024-05-27 22:26:21 +02:00
5af131b840 fix: link fragment with accents should be valid if the heading exists
Fixes a regression introduced in v2.3.0, which needed to lower case/manage case insensitive heading.
2024-01-31 21:56:55 +01:00
f332c833ca feat: support line number checking in link fragment (e.g: '#L50')
Fixes #6
2024-01-31 01:14:27 +01:00
e20ee54b05 fix: should only check valid fragments in markdown (.md) files 2024-01-31 00:10:41 +01:00
7ef7cc3bb3 refactor: early conditions first 2024-01-12 01:30:52 +01:00
0479652ffe test: add cases for fragments checking 2024-01-12 01:30:52 +01:00
24a0788d32 feat: html anchor support 2024-01-12 01:30:52 +01:00
7465ffd8bc test: separate cases, so it's easier to know what fails 2024-01-10 00:01:13 +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
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
2d63a30f48 refactor: usage of node:test instead of tap 2023-06-24 09:58:45 +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
221ded7d62 chore: initial commit 2023-01-02 15:23:16 +01:00