mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Using multiple "Opening Characters" for extension #466
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0xclx on GitHub (May 12, 2021).
Hello!
I have written a few Extensions so far, but they all relied on a single trigger symbol / character.
Now I wanted to ask if it was possible to perhaps use something like "Issue xxx" where as "Issue" is the triggerword instead of a "#" and takes teh following alphanumerical string (with or without whitespace) and processes/parses it.
As far as I know, OpeningCharacters is just an array of characters with each character in the array acting as the trigger individually.
Is there a way to achieve something like "#1234 acts the same as Issue 1234"?
@xoofx commented on GitHub (Jun 10, 2021):
Yes, you need to list the exact characters, but if it is just 1-9, it's just 9 characters you have to put.
For example the Jira Link extension is putting the whole alphabet as an opening character (here