You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/-syntax.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ In this case it will be possible to access the [product](class:kwd) and [product
89
89
90
90
If snippets are not enough, and you want to reuse chunks of _similar_ content, you can define substitution macros using the following syntax:
91
91
92
-
<code>\{#greet -> Hello, $1! Are you $2?#\}</code>
92
+
<code>\{#greet => Hello, $1! Are you $2?#\}</code>
93
93
94
94
This defines a macro called [greet](class:kwd) that takes two parameters which will be substituted instead of [$1](class:kwd) and [$2](class:kwd). To use the macro, use the following syntax:
95
95
@@ -101,6 +101,7 @@ This defines a macro called [greet](class:kwd) that takes two parameters which w
101
101
> * Like snippets, macros can be multiline.
102
102
> * Spaces and newline character are preseved ad the start and end of parameters.
103
103
> * You can use snippets and fields within macros (but you cannot nest macros inside other macros).
104
+
> * You can define macros using either [->](class:kwd) or [=>](class:kwd), although [=>](class:kwd) is preferred.
Copy file name to clipboardexpand all lines: doc/HastyScribe_UserGuide.htm
+7-6
Original file line number
Diff line number
Diff line change
@@ -4706,7 +4706,7 @@ <h3>Fields<a href="#document-top" title="Go to top"></a></h3>
4706
4706
<tbody>
4707
4707
<tr>
4708
4708
<td><code>{{$timestamp}}</code> </td>
4709
-
<td> 1489321116</td>
4709
+
<td> 1489321436</td>
4710
4710
</tr>
4711
4711
<tr>
4712
4712
<td><code>{{$date}}</code> </td>
@@ -4730,19 +4730,19 @@ <h3>Fields<a href="#document-top" title="Go to top"></a></h3>
4730
4730
</tr>
4731
4731
<tr>
4732
4732
<td><code>{{$short-time}}</code> </td>
4733
-
<td> 13:18 PM</td>
4733
+
<td> 13:23 PM</td>
4734
4734
</tr>
4735
4735
<tr>
4736
4736
<td><code>{{$short-time-24}}</code> </td>
4737
-
<td> 13:18</td>
4737
+
<td> 13:23</td>
4738
4738
</tr>
4739
4739
<tr>
4740
4740
<td><code>{{$time}}</code> </td>
4741
-
<td> 13:18:36 PM</td>
4741
+
<td> 13:23:56 PM</td>
4742
4742
</tr>
4743
4743
<tr>
4744
4744
<td><code>{{$time-24}}</code> </td>
4745
-
<td> 13:18:36</td>
4745
+
<td> 13:23:56</td>
4746
4746
</tr>
4747
4747
<tr>
4748
4748
<td><code>{{$day}}</code> </td>
@@ -4803,7 +4803,7 @@ <h3>Macros<a href="#document-top" title="Go to top"></a></h3>
4803
4803
4804
4804
<p>If snippets are not enough, and you want to reuse chunks of <em>similar</em> content, you can define substitution macros using the following syntax:</p>
4805
4805
4806
-
<p><code>{#greet -> Hello, $1! Are you $2?#}</code></p>
4806
+
<p><code>{#greet => Hello, $1! Are you $2?#}</code></p>
4807
4807
4808
4808
<p>This defines a macro called <span class="kwd">greet</span> that takes two parameters which will be substituted instead of <span class="kwd">$1</span> and <span class="kwd">$2</span>. To use the macro, use the following syntax:</p>
4809
4809
@@ -4815,6 +4815,7 @@ <h3>Macros<a href="#document-top" title="Go to top"></a></h3>
4815
4815
<li>Like snippets, macros can be multiline.</li>
4816
4816
<li>Spaces and newline character are preseved ad the start and end of parameters.</li>
4817
4817
<li>You can use snippets and fields within macros (but you cannot nest macros inside other macros).</li>
4818
+
<li>You can define macros using either <span class="kwd">-></span> or <span class="kwd">=></span>, although <span class="kwd">=></span> is preferred.</li>
0 commit comments