Skip to content

Getting Started

Installation

Install using your package manager:

sh
npm install vuemarkik
sh
yarn add vuemarkik
sh
pnpm add vuemarkik
sh
bun add vuemarkik
sh
deno add npm:vuemarkik

Simple Rendering

To render a markdown string, import the Markdown component and pass the string to the text prop:

html
<template>
  <Markdown :text="poetry" />
</template>

<script setup>
  import { Markdown } from 'vuemarkik';

  const poetry = `\
### Poetry Corner

> "You are old, Father William," the young man said,  
> "And your hair has become very white;  
> And yet you incessantly stand on your head -  
> Do you think, at your age, it is right?"

*Excerpt from __You Are Old, Father William__ by Lewis Carroll*
`;
</script>

This renders the following:

Poetry Corner

"You are old, Father William," the young man said,
"And your hair has become very white;
And yet you incessantly stand on your head -
Do you think, at your age, it is right?"

Excerpt from You Are Old, Father William by Lewis Carroll

What's Next?

Learn how to customize and extend VueMarkik:

Or explore specific examples:

Released under the MIT License.