do-markdownit icon indicating copy to clipboard operation
do-markdownit copied to clipboard

Add plugin to set attributes on links

Open MattIPv4 opened this issue 1 year ago • 0 comments
trafficstars

Type of Change

  • Markdown-It Plugins: Link attributes

What issue does this relate to?

N/A

What should this PR do?

Allows for custom attributes to be set on all links generated by the Markdown. For example, this would allow for hrefs to be transformed if required, or to modify the rel for links in user-generated content.

What are the acceptance criteria?

Test cases cover expected usage. Documentation is correct.

MattIPv4 avatar May 03 '24 16:05 MattIPv4