ulivz / vt

🖼️ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)
https://vt.insx.dev
MIT License
137 stars 10 forks source link

Typographic replacements and enabling markdown-it plugins. #56

Open matthewfurr opened 2 years ago

matthewfurr commented 2 years ago

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 commented 2 years ago

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.