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

mixing replacement with ^sup^ #3

Open
julientaq opened this issue Oct 3, 2022 · 0 comments
Open

mixing replacement with ^sup^ #3

julientaq opened this issue Oct 3, 2022 · 0 comments

Comments

@julientaq
Copy link

Hi and thanks for the work.

I’m trying to add the following:

mir.replacements.push({
  name: "no",
  html: true,
  re: /(nº|no|n^o^)\s(?=[0-9])/gi,
  sub: 'nº ',
  default: true,
});

When i try to render 'n^o^ 12', i get this result <p>n<sup>o</sup> 12</p>

Am i doing something wrong?
Thanks!

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

No branches or pull requests

1 participant