Automatic Linking
As you write natural prose, GMTales recognizes article names and turns them into hyperlinks. You get a wiki-like web of knowledge without ever inserting a link by hand.
How GMTales Finds Links
On save, GMTales scans the text for:
Article titles
Article aliases
Comma-separated title variations (the inverted form)
Each match becomes a link and records an article relation behind the scenes. Matching is case-insensitive.
If an article titled "Rivendell" exists, the mention is linked automatically.
Comma-Separated Titles
A title like Oakenshield, Thorin also matches its inverted form, Thorin Oakenshield:
Aliases
Aliases declare explicit alternative names for the same article:
Any of those names in other articles now links here:
Disambiguation and Priority
When multiple articles could match the same phrase, priority is:
Main title (highest)
Aliases
Comma-separated variations (lowest)
If multiple matches share the same priority, GMTales serves a disambiguation page listing the candidates so the reader can choose:
Specificity
When matches overlap in the same text, the more specific (longer) match wins: with articles "Helm's Deep" and "Battle of Helm's Deep", the phrase "Battle of Helm's Deep" links to the battle, not the fortress.
Keys for Explicit Linking
A key is a stable reference that survives title changes:
Link to it with standard Markdown link syntax:
Article Relations
Every auto-link stores a relation between source and target. Relations power backlinks and the graph view.
Visibility of Relations
Relations always follow the most restrictive rule in play:
If the target article is restricted, the relation inherits those restrictions.
If the mention appears inside a secret block, the relation is restricted to that block's visibility.
If both are restricted, the relation uses the intersection.