-1

I try to use the "®-symbol" in a generated documentation using Sphinx.

This special symbol makes some problems in headers but is working fine in normal text.

Here is my reStructuredText:

Name®
=====

Name®

Name<sup>®</sup>
================

and the result is

output

The problem here is that the "®-symbol" is placed on the baseline in all headers and is not superscripted like below in the normal text.

As you can see in the image, the <sup>-tag is not evaluated.

How can I get a superscripted version in the headers, too?

mosc9575
  • 5,618
  • 2
  • 9
  • 32

1 Answers1

1

You can use sup html tag, and then style it with css

sup {
  font-size: 12px;
}
<h1>Name<sup>&#174;</sup></h1>
Sfili_81
  • 2,377
  • 8
  • 27
  • 36
  • This is not the answer I am looking for. Adding the `sup`-tag to does't work. Please see my changes in the question. – mosc9575 Dec 16 '22 at 13:17
  • 1
    @mosc9575 This would be the solution in HTML/CSS, I would recommend removing those tags from your question if you don't want answers in those languages. – DBS Dec 16 '22 at 13:23