marked
marked copied to clipboard
Add a autolink field
I'm working on an extension that will render markdown to markdown. Then you can use marked to lex the markdown, change things, and then write it back to markdown.
While I know that parsing is an inherently lossy process, some of the details can be preserved.
In this PR, I propose to indicate if a link was an autolink or a regular link.
In the future, I might have more of these PRs.
This PR also fixes an issue with the node test runner. I'm running node 20.x, which indicated no unit tests were found. With the changed command, the unit test now runs again.
If you have any questions or need any changes, please let me know because I'm happy to help.
Marked version: any
Markdown flavor: Markdown.pl|CommonMark|GitHub Flavored Markdown
Contributor
- [x] Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
- [ ] no tests required for this PR.
- [x] If submitting a new feature, it has been documented in the appropriate places.
Committer
In most cases, this should be a different person than the contributor.
- [ ] CI is green (no forced merge required).
- [ ] Squash and Merge PR following conventional commit guidelines.