vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.22k stars 2.13k forks source link

Option for AutoCorrect/AutoFormat-like feature #4213

Closed thdoan closed 2 months ago

thdoan commented 2 months ago

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):

Describe alternatives you've considered

No response

Additional context

No response

Validations

brc-dd commented 2 months ago
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