Homec4science

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

Authored by epriestley <git@epriestley.com> on May 5 2016, 03:38.

Description

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

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:

{F1258536}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9790

Differential Revision: https://secure.phabricator.com/D15847

Details

Committed
epriestley <git@epriestley.com>May 5 2016, 11:51
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU47fb41229851: Write a simple parser to mangle `pygmentize` output to use email-friendly style…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUe499b37f5dd3: When rendering Remarkup codeblocks, allow calling engines to provide a style map (authored by epriestley <git@epriestley.com>).May 5 2016, 11:51