Page MenuHomePhabricator

<maplink> should be styled with the mark's style by default
Closed, ResolvedPublic

Description

  • By default, if <maplink> contains a marker whose marker-symbol is equal to one letter, one or two digits, begins with "-number" or with "-letter", the generated <a> link should have the style of that marker, e.g. if the marker is green, it should be shown as a green block (unless the style= parameter is set -- see T129495). The text of that link should be set to the resolved marker text, unless the text= parameter is set.
  • When there is more than one marker that fits the above criteria, they should be shown as a list of markers: [1], [2], [3] (each styled separately). I think there was a function in languages that makes localized comma separated lists.
  • Bonus; If the marker is a maki icon, it would be amazing to show that icon instead of the text. This should probably be a sub-task to add all maki icons into Kartographer and reference them. Styling rules should still apply.
  • Open question: should users be allowed to extend style instead of substituting it. E.g. instead of style=..., use addstyle=... to append additional styling to the system-generated ones.

Details

Related Changes in Gerrit: