Links recognition library with FULL unicode support for detecting high-quality link patterns in plain text
Overall
score
97%
Build a custom link recognizer that detects special "doc://" protocol links. These links should support standard URL paths with query parameters, but must validate that the path component only contains alphanumeric characters, hyphens, underscores, and forward slashes (no other special characters).
Your implementation should:
doc://path/to/doc?optional=paramsdoc:// and the query string or end) must only contain: letters, digits, hyphens, underscores, and forward slashes"Check doc://guides/intro" contains a valid link with URL "doc://guides/intro" @test"See doc://api/methods?version=2" contains a valid link with URL "doc://api/methods?version=2" @test"Invalid doc://path@with#special" should not detect a link (invalid path characters) @test"Read doc://intro and doc://advanced" should find both links @test@generates
/**
* A configured linkify-it instance with custom doc:// protocol support.
* The instance uses internal regex building blocks to validate paths.
*/
module.exports = linkifyInstance;Provides link recognition with custom protocol extension support and access to internal regex patterns.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-linkify-itdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10