Skip to content

A simple markdown textarea with preview using perak:markdown

Notifications You must be signed in to change notification settings

droka/meteor-autoform-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple markdown textarea with preview using perak:markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.5%
  • CSS 6.9%
  • HTML 6.6%