Forum


Replies: 6   Views: 4223
Default font on lists in embedhtml (strictwordstyles)
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by larrytech  · 17-03-2015 - 19:13

Just for the benefit of anyone else who needs to do the same, what we did to resolve this issue: 1. Disabled strict styles on invocations to embedHTML. 2. Invoked preg_replace on the HTML output of our Markdown parser (Parsedown) to do the following: a. Replace <p> tags with <p style="font-size, text-align: ... etc b. Replace <li> tags with <li style="font-family: ...etc And that's pretty much it!