Page MenuHomePhabricator

When rendering Remarkup codeblocks, allow calling engines to provide a style map
ClosedPublic

Authored by epriestley on May 5 2016, 1:39 AM.
Tags
None
Referenced Files
F15564325: D15847.id38184.diff
Wed, Apr 30, 11:35 AM
F15554491: D15847.id38177.diff
Mon, Apr 28, 7:20 AM
F15551693: D15847.id.diff
Sun, Apr 27, 6:02 PM
F15549540: D15847.id38175.diff
Sun, Apr 27, 6:27 AM
F15546670: D15847.diff
Sat, Apr 26, 4:26 PM
F15535296: D15847.diff
Thu, Apr 24, 4:25 AM
F15526094: D15847.id38175.diff
Mon, Apr 21, 7:06 PM
F15514289: D15847.diff
Fri, Apr 18, 1:25 AM
Subscribers
None

Details

Summary

Ref T9790.

  • Make the HTML version of code blocks look more like the web version.
  • If the caller passes a style map, reformat the body to use style="..." instead of class="..." for HTML mail mode.
Test Plan

Faked a style map and got some inline styles (red stuff) -- see also the "style" in the inspector:

Screen Shot 2016-05-04 at 6.37.26 PM.png (970×754 px, 228 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to When rendering Remarkup codeblocks, allow calling engines to provide a style map.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
chad added inline comments.
src/markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php
147

(y)

This revision is now accepted and ready to land.May 5 2016, 1:47 AM
epriestley edited edge metadata.
  • Synchronize more styles better: counterexample, headers, margins, font sizing.
This revision was automatically updated to reflect the committed changes.