meteor-autoform-markdown icon indicating copy to clipboard operation
meteor-autoform-markdown copied to clipboard

A simple markdown textarea with preview using perak:markdown

autoform-markdown

A simple markdown textarea with preview using perak:markdown

Demo

Checkout http://autoform-markdown.meteor.com/

Usage

Add a custom template in your Schema

Schemas.Quest = new SimpleSchema({
  title: {
    type: String
  },
  text: {
    type: String,
    autoform: {
      type: 'markdown'
    }
  }
});

Render markdown text using the renderMarkdown helper in your template

<template name="quest">
  <h1>{{title}}</h1>
  {{{renderMarkdown text}}}
</template>

For more info and usage see: https://github.com/chjj/marked#usage