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

Feature Idea: Allow Replacements / Text Transformations #127

Open
gohrner opened this issue Aug 2, 2020 · 0 comments
Open

Feature Idea: Allow Replacements / Text Transformations #127

gohrner opened this issue Aug 2, 2020 · 0 comments
Labels
Needs Spec Needs further specification to be a good (help wanted) ticket Type/Question Further information is requested

Comments

@gohrner
Copy link

gohrner commented Aug 2, 2020

I helpful feature would be to allow certain text transformations / formatting before adding the matched text to the template.

One example would be escaping for Markdown or URL encoding, such that the added text does not mess up generated links.

(With a Template like [$1]($2), all sorts of characters in the matched text could mess up the result.)

Another example would be text transformation, e.g. I'd like to convert Java package and class names like java.util.List to a Javadoc link like https://docs.oracle.com/javase/8/docs/api/java/util/List.html. I don't see an easy way to do this with the current autolink plugin due to the varying package nesting levels. I'd have to replace an arbitrary number of .s in the matched text with / to properly generate the links.

@levb levb self-assigned this Aug 18, 2020
@levb levb added Needs Spec Needs further specification to be a good (help wanted) ticket Type/Question Further information is requested labels Aug 18, 2020
@levb levb removed their assignment May 22, 2023
ayusht2810 pushed a commit to Brightscout/mattermost-plugin-autolink that referenced this issue Feb 15, 2024
mattermost-community#192)

* Revert "Update main.go (mattermost-community#154)"

This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475.

* Revert "[MM-33506] Use embed package to include plugin manifest (mattermost-community#145)"

This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f.

* Revert "Don't generate manifest.ts (mattermost-community#127)"

This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e.

* install-go-tools target, adopt gotestsum

* bring back make apply + automatic versioning

* Update build/manifest/main.go

Co-authored-by: Michael Kochell <[email protected]>

* suppress git describe error when no tags match

* make version/release notes opt-in

* fix whitespace in Makefile

* document version management options

---------

Co-authored-by: Michael Kochell <[email protected]>
mickmister added a commit that referenced this issue Mar 14, 2024
* [MM-98] Update plugin with respect to phase 1 upgrades

* [MM-98] Fix lint

* [MM-98] Update Readme

* [MM-98] Review fixes regarding constant for golangci-lint

* Sync with playbooks: install-go-tools, gotestsum, and dynamic versions (#192)

* Revert "Update main.go (#154)"

This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475.

* Revert "[MM-33506] Use embed package to include plugin manifest (#145)"

This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f.

* Revert "Don't generate manifest.ts (#127)"

This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e.

* install-go-tools target, adopt gotestsum

* bring back make apply + automatic versioning

* Update build/manifest/main.go

Co-authored-by: Michael Kochell <[email protected]>

* suppress git describe error when no tags match

* make version/release notes opt-in

* fix whitespace in Makefile

* document version management options

---------

Co-authored-by: Michael Kochell <[email protected]>

* Fetch plugin logs from server (#193)

Co-authored-by: Jesse Hallam <[email protected]>

---------

Co-authored-by: Jesse Hallam <[email protected]>
Co-authored-by: Michael Kochell <[email protected]>
Co-authored-by: Ben Schumacher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Spec Needs further specification to be a good (help wanted) ticket Type/Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants