mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-26 11:53:26 -08:00
Now there is now longer a dummy DOM element corresponding to the macro itself. Instead, macros must create a single element child. This allows us to more easily fit Bootstrap's requirements for HTML layout (eg, that problem with links in navbars not being recognised). The refactoring isn't complete, there are still a few bugs to chase down
27 lines
368 B
JavaScript
27 lines
368 B
JavaScript
/*\
|
|
title: $:/core/modules/macros/echo.js
|
|
type: application/javascript
|
|
module-type: macro
|
|
|
|
Echo macro
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
exports.info = {
|
|
name: "echo",
|
|
params: {
|
|
text: {byPos: 0, type: "text"}
|
|
}
|
|
};
|
|
|
|
exports.executeMacro = function() {
|
|
return $tw.Tree.Text(this.params.text);
|
|
};
|
|
|
|
|
|
})();
|