sensiolabs / ansi-to-html

An ANSI to HTML5 converter
MIT License
238 stars 31 forks source link

Support CSS prefix being defined early #16

Open rquadling opened 7 years ago

rquadling commented 7 years ago

The CSS prefix that is part of the theme takes precedence over the prefix supplied to the converter.

Deprecates $prefix parameter from Theme::asCss()

It would be cumbersome to support a dynamic prefix at this late stage of the rendering.

Tests updated to cover the following combinations.

  1. Using the default theme or a supplied theme, with and without its own css prefix.
  2. Using the default css prefix or a supplied prefix.
  3. Using inline styling or CSS.

Hopefully fixes https://github.com/sensiolabs/ansi-to-html/issues/12