Enabling superscript and/or subscript doesn't work.
See original GitHub issue🐛 Bug Report
Enabling superscript and/or subscript doesn’t work.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
- Install and initialize docusaurus 1.14 (
npx docusaurus-init
) - Enable sup and sub in remarkable (
siteconfig.js
) as described in docs: https://docusaurus.io/docs/en/site-config.
markdownPlugins: [
function foo(md) {
md.inline.ruler.enable(['sub', 'sup']);
},
],
- Add page with 1 tag or ^1^ (doc2 in demo)
Expected behavior
The 1 character or “st” should be rendered to html superscript
Actual Behavior
The 1 character and “st” are rendered as regular text in html.
Your Environment
- Docusaurus version used: 1.14
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chromium 83.0.4103.106, Node.js 12.16.2
- Operating system and version (desktop or mobile): Windows 10 1909
Reproducible Demo
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Fix Google Docs Superscript Not Working - Technipages
If you can't use the superscript feature in Google Docs, we've got a series of handy solutions to help you troubleshoot this issue....
Read more >Keyboard Shortcut in Docs Not Working for Superscript
Keyboard Shortcut in Docs Not Working for Superscript · On your computer, open Chrome. · At the top right, click More Settings. ·...
Read more >Format text or numbers as superscript or subscript
Press CTRL+1. Under Effects, check the Superscript or Subscript box, and click OK.
Read more >How to Add a Superscript or Subscript in Microsoft Word
1. Select the text you want to format as either a superscript or subscript. · 2. In the ribbon, click the "Home" tab...
Read more >MS Word equations don't permit subscripts or superscripts
In the font section of the "home" tab the sub and superscript icons are grayed out AND the shortcuts to sub and superscripts...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is plugin option config, not global site config (also why it’s not in the global config validation logic)
Added documentation for Katex today: https://docusaurus.io/docs/next/markdown-features/math-equations
If you want to enable extra md features on v2, you can pass remark plugins as documented (not in the migration guide)
Going to close as we likely won’t do anything for v1
@naddeoa I ran into the same issue with the documentation about plugins being (still) a bit vague. Hopefully they will be improved soon, now that v2 is out of alpha. I don’t have a straight answer for you as I’m also “just” a Docusaurus user, but maybe this will help you along.
docusaurus.config.js
:docusaurus.config.js
add topresets
(notplugins
!?):