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

Option for AutoCorrect/AutoFormat-like feature #4213

Closed
4 tasks done
thdoan opened this issue Sep 17, 2024 · 1 comment
Closed
4 tasks done

Option for AutoCorrect/AutoFormat-like feature #4213

thdoan opened this issue Sep 17, 2024 · 1 comment

Comments

@thdoan
Copy link

thdoan commented Sep 17, 2024

Is your feature request related to a problem? Please describe.

It would be nice to an have option to enable automatic text replacements similar to Microsoft Word's AutoCorrect and AutoFormat features.

Describe the solution you'd like

These replacements would be especially helpful (except when inside a code block):

  • "" to “”
  • '' to ‘’
  • -- to
  • 1/2 to ½
  • (c) to ©
  • (r) to ®
  • (tm) to
  • +/- to ±
  • <= to
  • >= to
  • ... to
  • -> to
  • <- to
  • --> to 🡒
  • <-- to 🡐
  • => to
  • <= to

Describe alternatives you've considered

No response

Additional context

No response

Validations

@brc-dd
Copy link
Member

brc-dd commented Sep 18, 2024

export default defineConfig({
  markdown: {
    typographer: true,
  },
});

https://github.com/markdown-it/markdown-it

some of those replacements you mentioned are not supported and should be done via third party markdown-it plugins if possible

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
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

2 participants