mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-11 01:03:01 -07:00
* fix: apply automatic eslint fixes * lint: allow hashbang comment for tiddlywiki.js * lint: first back of manual lint fixes for unused vars * lint: added more fixes for unused vars * lint: missed files * lint: updated eslint config with selected rules from #9669
16 lines
440 B
JavaScript
16 lines
440 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/wikitext-serialize/rules/parameters.js
|
|
type: application/javascript
|
|
module-type: wikiruleserializer
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
exports.name = "parameters";
|
|
|
|
exports.serialize = function(tree,serialize) {
|
|
var params = tree.orderedAttributes.map(function(param) {
|
|
return param.name + (param.value ? ":" + param.value : "");
|
|
}).join(",");
|
|
return "\\parameters(" + params + ")\n\n" + serialize(tree.children);
|
|
};
|