All Projects → luosijie → vm-markdown

luosijie / vm-markdown

Licence: MIT license
Example

Programming Languages

HTML
75241 projects
Vue
7211 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vm-markdown

Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (+163.54%)
Mutual labels:  vue-components
vue-virtualised
Blazing fast scrolling and updating for any amount of list and hierarchical data.
Stars: ✭ 18 (-81.25%)
Mutual labels:  vue-components
ari
Accessible unstyled vue components
Stars: ✭ 22 (-77.08%)
Mutual labels:  vue-components
revue
Revue provides a helpful interface for testing Vue components
Stars: ✭ 16 (-83.33%)
Mutual labels:  vue-components
vue-swimlane
A Text Swimlane plugin for Vue.js
Stars: ✭ 71 (-26.04%)
Mutual labels:  vue-components
Vi-Ui
💙 A simple but consistent user interface made for Vue
Stars: ✭ 42 (-56.25%)
Mutual labels:  vue-components
Vue Ui Framework
My personal collection of Vue UI framework
Stars: ✭ 245 (+155.21%)
Mutual labels:  vue-components
bee-ui
VUE组件库
Stars: ✭ 16 (-83.33%)
Mutual labels:  vue-components
vue-thailand-address-autocomplete
🇹🇭 Autocomplete ที่อยู่ในประเทศไทย
Stars: ✭ 49 (-48.96%)
Mutual labels:  vue-components
vue-product-spinner
🚗 A 3D product spinner for Vue.js with no dependencies
Stars: ✭ 94 (-2.08%)
Mutual labels:  vue-components
VueXcode
Syntax highlighting for .Vue components and .mustache templates in Xcode
Stars: ✭ 25 (-73.96%)
Mutual labels:  vue-components
vue-cli-template-library
Template for developing open-source vue.js libraries with Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease
Stars: ✭ 61 (-36.46%)
Mutual labels:  vue-components
vue-uix
Vue components based on the JUI components available in Vue.js
Stars: ✭ 15 (-84.37%)
Mutual labels:  vue-components
Element
A Vue.js 2.0 UI Toolkit for Web
Stars: ✭ 51,416 (+53458.33%)
Mutual labels:  vue-components
vue-ui
A collection of VueJS components(Go to VueFace)
Stars: ✭ 19 (-80.21%)
Mutual labels:  vue-components
Vueonrails
💎 Rails gem with the power of Vue.js components
Stars: ✭ 250 (+160.42%)
Mutual labels:  vue-components
create-vue-component
Create Vue component with no configurations.
Stars: ✭ 85 (-11.46%)
Mutual labels:  vue-components
vexip-ui
A Vue 3 UI library, Highly customizable property values, Full TypeScript, Performance should be good.
Stars: ✭ 488 (+408.33%)
Mutual labels:  vue-components
sweet-modal-vue
The sweetest library to happen to modals.
Stars: ✭ 762 (+693.75%)
Mutual labels:  vue-components
vue-icon-font
IconFont plugin for Vuejs
Stars: ✭ 25 (-73.96%)
Mutual labels:  vue-components

example

Install

npm install --save vm-markdown

Usage

<template>
  <vm-markdown
    :uploadImage="uploadImage"
    theme="default" //dark, green, gray, princess
    width="1000px" 
    height="600px" 
    @change="onChange"
  />
</template>
<script>
  import VmMarkdown from "vm-markdown"
  import "highlight.js/styles/github.css"
  import hljs from 'highlight.js'
  export default {
    name: "app",
    components: {
        VmMarkdown
    },
    methods: {
      onChange(data) {
        // data = {html, markdown}
        this.$nextTick(() => {
            const codes = document.querySelectorAll(".markdown-body pre code");
            codes.forEach(elem => {
                hljs.highlightBlock(elem);
            });
        });
      },
      // your method to upolad the file to server
      async uploadImage(file) {
        const imgUrl = await this.uploadRequest(file);
        return imgUrl
      }
    }
  }
</script>

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].