Skip to content

Render desmos-graph codeblocks as embed graphs. Credit @Nigecat/obsidian-desmos

License

Notifications You must be signed in to change notification settings

mdrkrg/vite-plugin-desmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())],
  },

  // ...
})

About

Render desmos-graph codeblocks as embed graphs. Credit @Nigecat/obsidian-desmos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published