Skip to content

Commit

Permalink
feat: Add support for pre parsing on md output option
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Jul 5, 2024
1 parent 5d55260 commit 12aaec7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_:
Expand Down
3 changes: 3 additions & 0 deletions src/include/outputFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$/, ""))
Expand Down

0 comments on commit 12aaec7

Please sign in to comment.