├── demo.gif
├── vue.config.js
├── public
├── favicon.ico
└── index.html
├── src
├── assets
│ └── logo.png
├── main.js
├── App.vue
└── components
│ └── test-comp.vue
├── babel.config.js
├── docs
├── .vuepress
│ ├── public
│ │ └── logo.png
│ ├── enhanceApp.js
│ └── config.js
├── README.md
└── guide
│ └── quick-start.md
├── packages
├── index.js
└── components
│ └── vue-mathjax.vue
├── .editorconfig
├── .gitignore
├── package.json
└── README.md
/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justforuse/vue-mathjax/HEAD/demo.gif
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | productionSourceMap: false
3 | }
4 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justforuse/vue-mathjax/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justforuse/vue-mathjax/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/docs/.vuepress/public/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justforuse/vue-mathjax/HEAD/docs/.vuepress/public/logo.png
--------------------------------------------------------------------------------
/docs/.vuepress/enhanceApp.js:
--------------------------------------------------------------------------------
1 | import Mathjax from '../../packages'
2 |
3 | export default ({ Vue, options, router }) => {
4 | Vue.use(Mathjax)
5 | }
6 |
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | home: true
3 | heroImage: /logo.png
4 | heroText: Vue Mathjax
5 | tagline: A Vue plugin for mathjax
6 | actionText: Get Started →
7 | actionLink: /guide/quick-start
8 | ---
9 |
--------------------------------------------------------------------------------
/packages/index.js:
--------------------------------------------------------------------------------
1 | import VueMathjax from "./components/vue-mathjax.vue";
2 |
3 | export { VueMathjax };
4 |
5 | export default {
6 | install: function (Vue) {
7 | Vue.component("vue-mathjax", VueMathjax);
8 | },
9 | };
10 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 |
4 | import VueMathjax from './VueMathjax.umd.min.js'
5 |
6 | Vue.config.productionTip = false
7 |
8 | Vue.use(VueMathjax)
9 |
10 | new Vue({
11 | render: h => h(App),
12 | }).$mount('#app')
13 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome: http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Unix-style newlines with a newline ending every file
7 | [*]
8 | end_of_line = lf
9 | insert_final_newline = true
10 | charset = utf-8
11 | trim_trailing_whitespace = true
12 | indent_style = space
13 | indent_size = 2
14 |
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | **/dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
25 | package-lock.json
26 |
--------------------------------------------------------------------------------
/docs/.vuepress/config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | title: 'Vue Mathjax',
3 | head: [
4 | ['script', { src: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_HTML' }]
5 | ],
6 | themeConfig: {
7 | logo: '/logo.png',
8 | nav: [{ text: 'Guide', link: '/guide/quick-start' }],
9 | repo: 'https://github.com/justforuse/vue-mathjax',
10 | sidebar: [
11 | {
12 | title: 'Guide',
13 | collapsable: false,
14 | sidebarDepth: 0,
15 | children: ['/guide/quick-start']
16 | }
17 | ]
18 | },
19 | plugins: [
20 | 'demo-container'
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | Result:
6 |