mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts. Thanks to xet7 !
This commit is contained in:
parent
6117097a93
commit
73e265d8fd
354 changed files with 36977 additions and 106 deletions
16
packages/markdown/template-integration.js
Executable file
16
packages/markdown/template-integration.js
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
if (Package.ui) {
|
||||
var Template = Package.templating.Template;
|
||||
var UI = Package.ui.UI;
|
||||
var HTML = Package.htmljs.HTML;
|
||||
var Blaze = Package.blaze.Blaze; // implied by `ui`
|
||||
|
||||
UI.registerHelper('markdown', new Template('markdown', function () {
|
||||
var self = this;
|
||||
var text = "";
|
||||
if(self.templateContentBlock) {
|
||||
text = Blaze._toText(self.templateContentBlock, HTML.TEXTMODE.STRING);
|
||||
}
|
||||
|
||||
return HTML.Raw(Markdown(text));
|
||||
}));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue