autolink-references-mkdocs-plugin icon indicating copy to clipboard operation
autolink-references-mkdocs-plugin copied to clipboard

add 'look_for_alphanumeric_id' flag to enable parsing values that are not only digits

Open JonasDoesThings opened this issue 3 years ago • 0 comments

This PR adds the settings flag "look_for_alphanumeric_id" which can be set to true to allow for parsing non-numeric IDs. It is false by default, so nothing changes with existing configs. I've also created testcases for this feature.

Example:

- reference_prefix: GIT@
  target_url: 'https://github.com/<num>'
  look_for_alphanumeric_id: true

transforms: GIT@k4ds3/plavatar into https://github.com/k4ds3/plavatar

Feel free to merge this if you find it useful too.

JonasDoesThings avatar Nov 12 '22 20:11 JonasDoesThings