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
F18758188: D15847.diff
Sun, Oct 5, 9:01 PM
F18751770: D15847.id38177.diff
Sat, Oct 4, 12:35 PM
F18703091: D15847.diff
Sun, Sep 28, 2:57 AM
F18629103: D15847.id.diff
Tue, Sep 16, 8:00 AM
F18609622: D15847.diff
Sun, Sep 14, 3:35 AM
F18600904: D15847.diff
Sat, Sep 13, 10:56 AM
F18590629: D15847.diff
Fri, Sep 12, 6:37 AM
F18507488: D15847.id.diff
Sep 5 2025, 2:14 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
Branch
syntax3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12053
Build 15180: Run Core Tests
Build 15179: arc lint + arc unit

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.