Page MenuHomePhabricator

Separate the "{img ...}" remarkup rule into separate parse and markup phases
ClosedPublic

Authored by epriestley on Mar 8 2018, 1:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 9:36 AM
Unknown Object (File)
Mon, Nov 18, 4:08 AM
Unknown Object (File)
Mon, Nov 11, 5:43 AM
Unknown Object (File)
Sat, Nov 9, 10:39 PM
Unknown Object (File)
Sun, Nov 3, 6:14 AM
Unknown Object (File)
Sun, Oct 27, 4:58 AM
Unknown Object (File)
Oct 20 2024, 9:40 PM
Unknown Object (File)
Oct 18 2024, 10:50 PM
Subscribers
None

Details

Summary

Ref T13101. Ref T4190. This rule is currently single-phase but I'd like to check for a valid proxied image in cache already and just emit an <img ... /> tag pointing at it if we have one.

To support batching these lookups, split the rule into a parse phase (where we extract URIs) and a markup phase (where we build tags).

Test Plan

Used {img ...} in Remarkup with no apparent behavioral changes. (This change should do nothing on its own.)

Diff Detail

Repository
rP Phabricator
Branch
image1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19784
Build 26801: Run Core Tests
Build 26800: arc lint + arc unit

Event Timeline

epriestley created this revision.
  • Improve word use in comment.
This revision was not accepted when it landed; it landed in state Needs Review.Mar 8 2018, 3:03 PM
This revision was automatically updated to reflect the committed changes.