Page MenuHomePhabricator

Implement a "{src ...}" rule in Remarkup for referencing source files in Diffusion
Open, NormalPublic

Description

See PHI1224, which requests support for linking to source files in a way that makes access via an external editor easier.

Previously, see T5378. My plan of attack here is:

  • Convert existing Doorkeeper rules (JIRA and Asana) to use the new extension point. See also T13285.
  • Begin recognizing and specializing the rendering of full https://install.com/diffusion/x/y/z.c URIs, similar to how https://install.com/T123 URIs are now specialized.
  • Provide an alternate mechanism for this rendering rule, {src ...}.
  • Add options to control layout and behavior.

Once this lands, both {src ...} and the new uri, {uri}, and <uri> rules should be documented.

Also:

Event Timeline

epriestley triaged this task as Normal priority.May 17 2019, 2:22 PM
epriestley created this task.

See also T13290. Now that full URIs count as mentions (D20527), the text "Differential Revision: ..." in commits is counting as a mention, and "mentioning" the associated revision.

This isn't too harmful but is silly, and should get cleaned up.

See PHI1312. The modified JIRA rules reportedly misfire on URIs with anchors or parameters. For now, the plan is to just skip these URIs. In the future, we might specialize URIs which (for example) link to comments on foreign objects.