Make autolink module configurable #3

Open
opened 2018-08-20 05:56:05 +00:00 by kuschelyagi · 0 comments
Owner

Currently the settings for the autolink module (what searchers are enabled, and in what order, and also what pattern to match on) are hard-coded in. They should be configurable.

Probably make it look something like this

[autolink]
pattern = "\[\[([^\[\]]*)\]\]"

[autolink.searchers]
mtg = { type = "mtg" },
ygo = { type = "ygo" },
pk = { type = "mediawiki", url = "http://bulbapedia.bulbagarden.net/" }
Currently the settings for the autolink module (what searchers are enabled, and in what order, and also what pattern to match on) are hard-coded in. They should be configurable. Probably make it look something like this ``` [autolink] pattern = "\[\[([^\[\]]*)\]\]" [autolink.searchers] mtg = { type = "mtg" }, ygo = { type = "ygo" }, pk = { type = "mediawiki", url = "http://bulbapedia.bulbagarden.net/" } ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: elsanctum/tenquestionmarks#3
No description provided.