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

Typographic replacements and enabling markdown-it plugins. #56

Open
matthewfurr opened this issue Feb 17, 2022 · 1 comment
Open

Typographic replacements and enabling markdown-it plugins. #56

matthewfurr opened this issue Feb 17, 2022 · 1 comment

Comments

@matthewfurr
Copy link

Question. I'm attempting to follow the docs and I'm a bit lost on typographic replacements. Can you give a little more detail on how to enable typographer? Would enabling this fix the numbered lists so that they are actually numbered. See example here of them not actually being numbered.

Last question, where do I enable the markdown-it plugins? I thought it would be in the .vuepress/config.ts file, like this:

import { ThemeConfig } from "vuepress-theme-vt";
import { defineConfig4CustomTheme } from "vuepress/config";

export = defineConfig4CustomTheme<ThemeConfig>((ctx) => ({
  theme: "vt",
  title: "Title",
  plugins: [
    [
      'HERE?'
    ]
  themeConfig: {
    enableDarkMode: true,

Thanks in advance!

@matthewfurr
Copy link
Author

Ok. So I was able to figure out the markdown plugins by adding this to the config.ts

import { ThemeConfig } from "vuepress-theme-vt";
import { defineConfig4CustomTheme } from "vuepress/config";

export = defineConfig4CustomTheme<ThemeConfig>((ctx) => ({
  theme: "vt",
  title: "Title",
  markdown: {
    plugins: [
      'sub',
      'sup',
      'footnote',
      'abbr',
    ],
  },
  themeConfig: {
    enableDarkMode: true,

I am still unable to get numbered lists to work.

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