Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add superscript rendering #639

Open
Piker98988 opened this issue Aug 22, 2024 · 1 comment
Open

Add superscript rendering #639

Piker98988 opened this issue Aug 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Piker98988
Copy link

When I find myself working with different languages in the same file and i want to mention words of a different language, i usually superscript the language over the word, so i know what language it is from. With glow, which i use daily, this superscript doesn't render: word^lang^

I'm nowhere near an expert, but as it hasn't been done yet it is probably hard to do. Adding a functionality to render markdown superscript would be the solution

An alternative i have considered is not using the superscript, or using another markdown renderer.

For example, as in the markdown official website:
image

@Piker98988 Piker98988 added the enhancement New feature or request label Aug 22, 2024
@bobbykjack
Copy link

The closest things to a "markdown official website" are:

There are many variants of markdown—I'm not sure exactly which one glow uses, but it's usually only safe to assume the Gruber syntax, so something like superscript is probably an extension.

From a search, I've located the site you referred to. This is not a "markdown official website" and the bit of text just clipped above your screenshot reads:

This isn’t common, but some Markdown processors allow you to use superscript to position one or more characters slightly above the normal line of type.

None of this is to say that support for superscript couldn't or shouldn't be added to glow, it's just some background info explaining why it might not be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants