stred

Stred: Streaming Tree Editor. Like sed but for JSON
git clone http://shtanton.xyz/git/repo/stred
Log | Files | Refs | README

commit a28312895aecd8643c1705c0a316d1b99107dc0d
parent 9186002fa2a931061194aa688184176c8730aea8
Author: Charlie Stanton <charlie@shtanton.xyz>
Date:   Tue, 25 Apr 2023 13:28:49 +0100

Fixes more README formatting

Diffstat:
MREADME.md | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -67,7 +67,7 @@ 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 | @@ -94,7 +94,7 @@ 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. +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` ```.