Page MenuHomePhabricator

Render remarkup in feed in a mostly reasonable way
ClosedPublic

Authored by epriestley on Aug 26 2014, 8:03 PM.
Tags
None
Referenced Files
F13157009: D10355.id24925.diff
Sun, May 5, 8:30 AM
Unknown Object (File)
Wed, May 1, 4:36 PM
Unknown Object (File)
Mon, Apr 29, 2:11 PM
Unknown Object (File)
Wed, Apr 24, 10:15 PM
Unknown Object (File)
Wed, Apr 17, 4:13 AM
Unknown Object (File)
Tue, Apr 9, 10:17 AM
Unknown Object (File)
Mar 22 2024, 10:11 PM
Unknown Object (File)
Mar 13 2024, 9:31 PM
Subscribers

Details

Summary

Fixes T4057. This sort of sidesteps the trickiest (but very rare) case of things like embedded slowvotes. We might be able to refine that later.

In the common bad case (macros, large images) it gets reasonable results by using overflow: hidden with max-height.

We use PhabriatorMarkupEngine::summarize() to try to just render the first paragraph.

Test Plan

Screen_Shot_2014-08-26_at_12.57.55_PM.png (630×614 px, 223 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Render remarkup in feed in a mostly reasonable way.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Aug 26 2014, 9:14 PM
epriestley updated this revision to Diff 24937.

Closed by commit rP69b0ac724a7c (authored by @epriestley).