alphagov / govspeak

Markdown extension library for Government editors
http://govspeak-preview.herokuapp.com/
MIT License
84 stars 22 forks source link

Table headers don't support subscript or superscript #205

Open astreater opened 3 years ago

astreater commented 3 years ago

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/m3) at 3% O2 ELV SO2 (mg/m3) at 15% O2
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

estherwoods commented 3 years ago

This was raised from a Whitehall publisher query: https://govuk.zendesk.com/agent/tickets/4455960

kr8n3r commented 3 years ago

as discussed a workaround for the time being is to use unicode characters