Question: How can I type "- 2" as a superscript in Webflow? How can I prevent Webflow from automatically turning "^-" into "↑"?

Published on
September 22, 2023

To type "- 2" as a superscript in Webflow and prevent it from being automatically turned into "↑", you can use the following workarounds:

  1. Markdown Formatting: You can use the markdown formatting to display text as superscript. Here's how to do it:
  • Type your text normally, for example: "2".
  • Surround the text with caret (^) symbols: "^2^".
  • Apply the "markdown" class to the text element.
  • Webflow will automatically render the text as superscript.
  1. Custom Code: Another way to display text as superscript is by using custom code. Here's how to do it:
  • Insert an HTML embed element where you want the superscript to appear.
  • Inside the HTML embed element, use the <sup> element to wrap the text you want to make superscript, for example: <sup>2</sup>.
  • Style the <sup> element using CSS to adjust its size, positioning, and other properties if needed.

Preventing Webflow from automatically turning "^-" into "↑" requires a slightly different approach:

  1. Custom Code with Escape Character: Webflow has a built-in behavior that converts caret symbols followed by a dash into a superscript. To prevent this from happening, you can use an escape character. Here's how to do it:
  • Type your text normally, for example: "- 2".
  • Add an escape character (backslash) before the caret, like this: "^".
  • Apply the "markdown" class to the text element.
  • Webflow will render the text as "- 2" without converting the caret into superscript.

By following these workarounds, you can display text as superscript and prevent Webflow from automatically changing certain characters into superscript.

Additional Questions:

  1. Can I type other special characters as superscript in Webflow?
  2. How can I customize the appearance of superscript text in Webflow?
  3. Is there a way to format text as subscript in Webflow?