showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.19k stars 1.56k forks source link

[feat](links): Add option to automatically add `rel="me"` to on-site links #940

Closed gdog2u closed 2 years ago

gdog2u commented 2 years ago

The XHTML Friends Network, or XFN, is a proposed way of showing human relationships between blogs. A key feature of this proposal is denoting what links belong to you, the author.

With the PR, the option xfnRelAutoMe is added. It defaults to false, but when set to true, any links in the markdown that point to the current site will automatically have their rel attribute set to me.

codeclimate[bot] commented 2 years ago

Analysis results are not available for those commits

View more on Code Climate.

MarketingPip commented 2 years ago

Hey @gdog2u - I am not a contributor on this project.

Tho I am giving some feedback, one being that this does not follow the markdown spec. I do NOT think it is a fit for this project.

I would rather advise you make a plugin that can be installed into showdown as I do not this PR is needed.

Cool idea otherwise, and wishing you the best of luck with your project!

@tivie @SyntaxRules - I think this can be closed...