marked icon indicating copy to clipboard operation
marked copied to clipboard

Add a autolink field

Open wvanderp opened this issue 6 months ago • 3 comments

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.

wvanderp avatar Sep 01 '24 12:09 wvanderp