mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
// Source: https://github.com/coreyti/showdown
|
|
|
|
// XXX rename to 'markdown' and credit showdown some other way?
|
|
|
|
Package.describe({
|
|
summary: "Markdown-to-HTML processor"
|
|
});
|
|
|
|
var _ = Npm.require('underscore');
|
|
|
|
Package.on_use(function (api) {
|
|
api.add_files("showdown.js");
|
|
api.export('Showdown');
|
|
|
|
// Define {{markdown}} if handlebars got included.
|
|
api.use("handlebars", "client", {weak: true});
|
|
api.add_files("template-integration.js", "client");
|
|
});
|