Skip to content
Discussion options

You must be logged in to vote

What you want is a TextFormatTransformer, look at the existing ones for examples for how it works, they are all defined in MarkdownTransformers.ts. Would look something like this:

export const SUPERSCRIPT_CARET: TextFormatTransformer = {
  format: ['superscript'],
  tag: '^',
  type: 'text-format',
};

Figuring out the rest is up to you.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@peppies
Comment options

@etrepum
Comment options

etrepum Aug 29, 2025
Collaborator

@peppies
Comment options

@etrepum
Comment options

etrepum Aug 29, 2025
Collaborator

Answer selected by peppies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants