From bb6a78965fbaa1de8164f7c5e8b6a097567c3d09 Mon Sep 17 00:00:00 2001 From: Diomede Date: Wed, 26 May 2021 19:04:03 +0200 Subject: [PATCH] Final readme update --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ea1565f..1690237 100644 --- a/README.md +++ b/README.md @@ -71,24 +71,24 @@ The new `date` filter uses [date-fns](https://date-fns.org/) as library to handl There are also some special words that can be used with this filter: -**"now"** -`{{ "now" | date: "yyyy-MM-dd" }}` -Use the date from `new Date` and formatted with the given format +**"now"**
+`{{ "now" | date: "yyyy-MM-dd" }}`
+Use the date from `new Date` and formatted with the given format
-**"today"** -`{{ "today" | date: "yyyy-MM-dd" }}` -same as `now` +**"today"**
+`{{ "today" | date: "yyyy-MM-dd" }}`
+same as `now`
-**"yesterday"** -`{{ "yesterday" | date: "yyyy-MM-dd" }}` -use the [`subDays`](https://date-fns.org/v2.21.3/docs/subDays) function to subtract `1` from `Date.now()` and formatted with the given format +**"yesterday"**
+`{{ "yesterday" | date: "yyyy-MM-dd" }}`
+use the [`subDays`](https://date-fns.org/v2.21.3/docs/subDays) function to subtract `1` from `Date.now()` and formatted with the given format
-**"tomorrow"** -`{{ "tomorrow" | date: "yyyy-MM-dd" }}` -use the [`addDays`](https://date-fns.org/v2.21.3/docs/addDays) function to add `1` to `Date.now()` and formatted with the given format +**"tomorrow"**
+`{{ "tomorrow" | date: "yyyy-MM-dd" }}`
+use the [`addDays`](https://date-fns.org/v2.21.3/docs/addDays) function to add `1` to `Date.now()` and formatted with the given format
### `date` Default format @@ -145,4 +145,4 @@ For now, this plugin just includes the basic version of LiquidJS, but I want to - [ ] Add autocomplete to the template folder, excluded folder settings - [ ] Implement a fuzzy finder for the autocomplete - [x] Implement/install a filter that allows you to write `{{ 1 | days_ago | date: default_date_format }}` -- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet) \ No newline at end of file +- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet)