Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 887 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 887 Bytes

vite-plugin-desmos

Render desmos-graph codeblocks as embed graphs.

This project is unfinished and is under development. Do not use this in your production!

Credit @Nigecat/obsidian-desmos, most codes come from them, also check their documentation on the syntax.

Quickstart

npm i markdown-it
# There're currently no package release
npm link path/to/project
npm install
// example: .vitepress/config.mts
import { defineConfig } from 'vite'
import MarkdownItDesmos from 'markdown-it-desmos'
import MarkdownIt from 'markdown-it'

export default defineConfig({
  // ...
  markdown: {
    config: (md) => {
      md.use(MarkdownItDesmos)
    }
  },

  vite: {
    plugins: [MarkdownItDesmos(new MarkdownIt())],
  },

  // ...
})