New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@vuemark/core

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuemark/core

A customizable markdown rendering library for Vue.js

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
0
Created
Source

Vue Mark

提供了一个便捷的API,将 markdown 快速转换为 VNodes,支持使用自定义 Vue.js (3.0+) 组件。

安装

# use npm
npm install @vuemark/core

# use yarn
yarn add @vuemark/core

# use pnpm
pnpm add @vuemark/core

开箱即用

<script setup lang="ts">
const markdownText = ref('# Hello, Vue Mark!')

const { VueMarkContent, FootnoteContent, hasFootnote } = useVueMark(markdownText)
</script>

<template>
  <div>
    <VueMarkContent />
    <FootnoteContent v-if="hasFootnote" />
  </div>
</template>

贡献

如果你有任何问题或者建议,欢迎提 Issue 或者 PR

开发

[!WARNING] 请使用 pnpm 作为你的包管理器。

[!TIP] 建议使用 VS Code 进行开发,并安装推荐插件,默认情况下会自动启动 ESLint 并根据规则进行代码格式化。

# 安装依赖
pnpm install

# 启动开发环境
pnpm dev

# 构建
pnpm build

测试

TODO

规范

TODO

自定义组件

TODO

API

TODO

License

MIT License

Keywords

frontend

FAQs

Package last updated on 11 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts