Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a feature to optionally rewrite the link text too #6

Open
nima opened this issue Feb 2, 2023 · 0 comments
Open

Please add a feature to optionally rewrite the link text too #6

nima opened this issue Feb 2, 2023 · 0 comments

Comments

@nima
Copy link

nima commented Feb 2, 2023

Please add a feature to optionally rewrite the link text too; for example:

  • pattern: (\d{12}),(\w+)
  • sample: 0123456789AB,Admin
  • href: https://isengard.amazon.com/federate?account=$1&role=$2
    • resolves to: https://isengard.amazon.com/federate?account=0123456789AB&role=Admin
  • text: aws($2)@($a)
    • resolves to: aws(Admin@0123456789AB)
  • final resulting link (as markdown to convey the idea):
    • resolves to: [aws(Admin@0123456789AB)](https://isengard.amazon.com/federate?account=0123456789AB&role=Admin)

Optionally, allowing a prefix or suffix icon to the link, or pulling down the favicon, would be bonus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant