Skip to content

Q42/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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •