Skip to content

luoling8192/velin

Repository files navigation

@velin-dev/ml

Parse Vue SFC or Markdown to prompt for LLM.

Preview

Preview

Usage

Markdown

import { processMarkdown } from '@velin-dev/ml'

const markdown = await processMarkdown(markdownString, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})

Vue SFC

import { renderSFC } from '@velin-dev/ml'

const html = await renderSFC(source, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})
import { renderSFCToMarkdown } from '@velin-dev/ml'

const markdown = await renderSFCToMarkdown(source, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})

License

MIT

About

Parse Vue SFC and Markdown to prompt for LLM.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •