0.1.2 • Published 5 years ago

vue-cli-plugin-markdown v0.1.2

Weekly downloads
265
License
MIT
Repository
github
Last release
5 years ago

Vue CLI Plugin Markdown

A Vue Cli 3 plugin to import or require and parse .md files with no required configuration.

IMPORTANT: Your app must be created with Vue-CLI 3 (vue create my-app), will not work with Vue-CLI 2 (vue init webpack my-app)!

Quick Start:

Open a terminal in the directory of your app created with Vue-CLI 3.

Then, install vue-cli-plugin-markdown by running:

vue add markdown

That's It! You're ready to import or require .md files!

Example:

<template>
  <div v-html="markdown"/>
</template>

<script>
import markdown from "@/assets/markdown.md";

export default {
  data() {
    return {
      markdown
    };
  }
};
</script>