FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

Collect superscript and subscript texts from figma

Open KevynTD opened this issue 8 months ago • 4 comments

Your extension is very good, thank you btw!!

In figma, the designers on my team use this functionality a lot to place the text with sub or sup text, but when I copy the text of it, it never works: image

If you could export this on HTML, it would be amazing not to have to do the manual work of placing each of these by hand 😅

In HTML the tags used for this are <sub> and <sup>, and in CSS, the equivalent is to use the "vertical-align: sub;font-size: 0.9em;" and "vertical-align: super;font-size: 0.9em;" respectively.

KevynTD avatar Jun 11 '24 16:06 KevynTD