Skip to content

Commit 86d2062

Browse files
committed
feat: improve builting templates
1 parent 29a12b7 commit 86d2062

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/html/html_tools.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<td>
1818
<code><b>{{{this.name}}}</b></code>
1919
</td>
20-
<td>{{{replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>")
20+
<td>{{{replace_regex ( replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>") "\\n" "<br/>")
2121
"\\[([\\w\\-\\_]+)\\]" "<code>$1</code>"}}}</td>
2222
<td>
2323
<ul>

templates/markdown/md_plain_tools.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{#each tools}}
55

66
- **{{{this.name}}}**
7-
- {{{replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>") "\\[([\\w\\-\\_]+)\\]" "<code>$1</code>"}}}
7+
- {{{replace_regex (replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>") "\\n" "\n ") "\\[([\\w\\-\\_]+)\\]" "<code>$1</code>"}}}
88
{{#if this.params}}
99
- **Inputs:**
1010
{{#each this.params}}

templates/markdown/md_tools.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<td>
1818
<code><b>{{{this.name}}}</b></code>
1919
</td>
20-
<td>{{{replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>") "\\[([\\w\\-\\_]+)\\]" "<code>$1</code>"}}}</td>
20+
<td>{{{replace_regex (replace_regex (replace_regex this.description "'([\\w\\-\\_]+)'" "<code>$1</code>") "\\n" "\\n ")"\\[([\\w\\-\\_]+)\\]" "<code>$1</code>"}}}</td>
2121
<td>
2222
<ul>
2323
{{#each this.params}}

0 commit comments

Comments
 (0)