Project

General

Profile

Actions

Defect #43688

open

some style attributes are removed from HTML tags in Markdown comments/wiki entries

Added by Mathias Walter 2 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I've discovered that only some CSS style attributes are allowed at least for div and span tags. For instance `direction: rtl;` or `display: inline-block;` are removed. If I insert a typo, the tag will still be removed. Hence, a whitelisting is applied.
Please can you add `display` and `direction` to this list?

MWE:

<table style="font-size: 9px; margin-left: auto; margin-right: auto; margin-left: auto; margin-right: auto;">
    <thead>
        <tr>
            <th style="text-align:left;font-weight: bold;text-align: left;">Category</th>
            <th style="text-align:right;font-weight: bold;text-align: left;">% removed</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td style="text-align:left;">Surface</td>
        <td style="text-align:right;width: 80px;">
            <span style="display: inline-block; direction: rtl; border-radius: 4px; padding-right: 2px; background-color: lightgreen; width: 16.61%">1.86</span>
        </td>
    </tr>
    <tr>
        <td style="text-align:left;">Soil</td>
        <td style="text-align:right;width: 80px;">
            <span style="display: inline-block; direction: rtl; border-radius: 4px; padding-right: 2px; background-color: lightgreen; width: 100.00%">11.20</span>
        </td>
    </tr>
    <tr>
    </tbody>
</table>

Should render as:

but the green bar is rendered as:


Files

Actions

Also available in: Atom PDF