Add markdown variables aliases

This commit is contained in:
lowlighter
2021-04-07 00:26:26 +02:00
parent 4791ee7ffa
commit 679886333f
4 changed files with 63 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
This is a markdown template example which explain the basic usage of this template.
See [rendering of this file here](https://github.com/lowlighter/lowlighter/blob/master/metrics.markdown.full.md).
## 🈂️ Templating syntax:
* Regular EJS syntax is supported
@@ -9,6 +11,12 @@ This is a markdown template example which explain the basic usage of this templa
* `{%` and `%}` can be used as control statements
* Use [metrics.lecoq.io](https://metrics.lecoq.io/) with `config.output=json` to see available data
* You can also use `config_output: json` in GitHub Actions and/or inspect [metrics](https://github.com/lowlighter/metrics) code to get available data too
* Same formatting helpers available in templates can be used too
```markdown
I joined GitHub on `{{ f.date(REGISTRATION_DATE, {dateStyle:"short"}) }}`.
I contributed to `{{ REPOSITORIES_CONTRIBUTED_TO }}` repositories and made `{{ COMMITS }}` commits.
```
## 🧩 Markdown plugins