Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 817 Bytes

markdown.md

File metadata and controls

37 lines (28 loc) · 817 Bytes
title description
markdown
Documentation of Meteor's `markdown` package.

Note: This package has been deprecated.

This package lets you use Markdown in your templates.

Installation

meteor add markdown

Usage

This package is lazy loaded. Is is not added into the initial Bundle. So you need to import it in your template.

// myTemplate.js
import 'meteor/markdown';

Then just put your markdown inside {% raw %}{{#markdown}} ... {{/markdown}}{% endraw %} tags. You can still use all of the usual Meteor template features inside a Markdown block, such as {% raw %}{{#each}}{% endraw %}, and you still get reactivity.

Example:

<!-- myTemplate.html -->
{{#markdown}}I am using __markdown__.{{/markdown}}

outputs

<p>I am using <strong>markdown</strong>.</p>