<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-25 13:25:17 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-25 13:25:17 +0100
commit9186002fa2a931061194aa688184176c8730aea8 (patch)
treeb84e8559fb2ce34c43e14c81647ea2c22c61db10 /README.md
parented32e06578bdc390a2c37a9e915565adc9a70cba (diff)
downloadstred-go-9186002fa2a931061194aa688184176c8730aea8.tar
Fix README markdown formatting
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 57fd3a3..5080cc8 100644
--- a/README.md
+++ b/README.md
@@ -67,9 +67,9 @@ The simplest subexes are literals. These just copy directly from the input to th
| `_` | Copy across a single unicode codepoint inside a string |
| `"` | Copy across a string terminal (start or end of a string) |
| `#` | Copy across a string value. Equivalent to `"_{-0}"` |
-| `\`<null|bool|number|terminal>\`` | Copy across a specific boolean (true/false), a specific number or a specific object/array terminal |
+| `` `<null|bool|number|terminal>` `` | Copy across a specific boolean (true/false), a specific number or a specific object/array terminal |
| `<character>` | Copy across the specific character |
-| `[a-z\`null\`]` | Will match and copy across any of the specified literals. A `-` can be used to create a range of characters |
+| ``[a-z`null`]`` | Will match and copy across any of the specified literals. A `-` can be used to create a range of characters |
If the input doesn't match then the subex rejects.
For example, `a` copies across specifically the character `a` inside a string, anything else will reject.
@@ -94,15 +94,15 @@ The above are good for matching, but don't allow for transformation, so we can a
| `<drop>:<content>:` | Runs `drop`, accepting input as it does, then discards any output and outputs `content` instead |
| `[a-z=A-Z]` | Accepts one of the characters from left of `=` as input and outputs a corresponding character from the right as output. If there are more input options than output, the output range is looped |
-A useful construct is `[\`{\`\`}\`=\`[\`\`]\`]` which will replace an object terminal with the corresponding array terminal.
-To make using these literals easier, they can be listed inside a single pair of `\``.
-`\`1 2 {}null\`` is equivalent to `\`1\`\`2\`\`{\`\`}\`\`null\``.
+A useful construct is ``[`{``}`=`[``]`]`` which will replace an object terminal with the corresponding array terminal.
+To make using these literals easier, they can be listed inside a single pair of `` ` ``.
+`` `1 2 {}null` `` is equivalent to ``` `1``2``{``}``null` ```.
There a few other helpful shortcuts for the output syntax
| Syntax | Equivalent |
| --- | --- |
-| `~true~` | `=\`true\`=` |
+| `~true~` | ``=`true`=`` |
| `^hello^` | `="hello"=` |
#### Slots