diff --git a/src/docs/USAGE.md b/src/docs/USAGE.md index 2cdac85..df91be3 100644 --- a/src/docs/USAGE.md +++ b/src/docs/USAGE.md @@ -606,6 +606,16 @@ List of options to use when _out=log_: --- +### 🧾 MD output options + +List of options to use when _out=md_: + +| Option | Type | Description | +|--------|------|-------------| +| mdtemplate | Boolean | If true will apply a template output without any input data | + +--- + ### 🧾 OpenMetrics output options List of options to use when _out=openmetrics_: diff --git a/src/include/outputFns.js b/src/include/outputFns.js index 5bdeb8d..dc87afe 100644 --- a/src/include/outputFns.js +++ b/src/include/outputFns.js @@ -44,6 +44,9 @@ var _outputFns = new Map([ ["table", (r, options) => { _o$o(r, options) }], + ["md", (r, options) => { + _o$o((toBoolean(params.mdtemplate) ? $t(r) : r), options) + }], ["log", (r, options) => { if (isString(r) && toBoolean(params.logprintall)) { _print(r.replace(/\n$/, ""))