Skip to content

[feat]: add support for subscript and superscript modifiers #71

Description

@lucerowb

A clear and concise description of what the feature is

I had an issue when adding a release notes that contained references (bibliography), I had to mention them in some place, the documentation on google docs had used superscript to reference these , but strapi had no ability to mark it as superscript or subscript.

Why should this feature be included?

add modifiers like subscript and superscript

Please provide an example for how this would work

<BlocksRenderer
              key={key}
              content={content}
              blocks={{
                paragraph: ParagraphNode,
                heading: HeadingNode,
                quote: QuoteNode,
                list: ListNode,
                image: ImageNode,
                "list-item": ListItemNode,
                code: CodeNode,
                link: LinkNode,
              }}
              modifiers={{
                bold: BoldModifier,
                italic: ItalicModifier,
                strikethrough: strikethroughModifier,
                underline: underlineModifier,
                code: CodeModifier,
                superscript: SuperScriptModifier,
                subscript: SubScriptModifier,
              }}
            />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: enhancementIssue suggesting an enhancement to an existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions