Skip to content

Table headers don't support subscript or superscript #205

@astreater

Description

@astreater

As a content publisher publishing tables of mathematical or scientific data, I need to be able to format characters as superscript and subscript in table headers so that I can express chemical and mathematical symbols.

Quite a specific use case but for things like mg/m3 or SO2, govspeak doesn't seem to allow this in headers.

Example:

| Fuel sulfur % by mass | ELV SO2 (mg/m<sup>3</sup>) at 3% O<sub>2</sub> | ELV SO<sub>2</sub> (mg/m<sup>3</sup>) at 15% O<sub>2</sub> | | --- | --- | | 0.2% | 350 | 120 | | 0.5% | 850 | 290 | | 1.0% | 1700 | 570 |

The desired output is something like the below:

Fuel sulfur % by mass ELV SO2 (mg/m3) at 3% O2 ELV SO2 (mg/m3) at 15% O2
0.2% 350 120
0.5% 850 290
1.0% 1700 570

Raised on behalf of Esther Woods (Content Designer): https://gds.slack.com/archives/CAB4PSQKW/p1612529109158600

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions