A simple markdown textarea with preview using perak:markdown
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
.versions
README.md
jquery.selection.js
markdown.css
markdown.html
markdown.js
package.js

README.md

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