0.0.4 • Published 3 years ago

@halo-dev/halo-markdown-editor v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Halo Markdown Editor

In development, not for production use

demo: https://halo-markdown-editor.netlify.app

Installation

npm install @halo-dev/halo-markdown-editor

or

yarn add @halo-dev/halo-markdown-editor

Usage

Global Registration

import { createApp } from "vue";
import HaloMarkdownEditor from "@halo-dev/halo-markdown-editor";
import "@halo-dev/halo-markdown-editor/dist/lib/style.css";

const app = createApp(/* */);

app.use(HaloMarkdownEditor);

Local Registration

<template>
  <HaloMarkdownEditor />
</template>

<script>
import { defineComponent } from "vue";
import { HaloMarkdownEditor } from "@halo-dev/halo-markdown-editor";
import "@halo-dev/halo-markdown-editor/dist/lib/style.css";

export default defineComponent({
  components: {
    HaloMarkdownEditor,
  },
  setup() {
    return {};
  },
});
</script>

Vite

https://github.com/vitejs/vite/issues/2249

export default defineConfig({
  plugins: [vue()],
  resolve: { dedupe: ["vue"] },
});