Skip to content

Commit

Permalink
Escape pipe character in readme table
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Oct 12, 2023
1 parent 1526872 commit 370ffbc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ const msg2: string = 'This file is: my-app.ts';
```

Example outputs and formatters:
| Source file text | Example output value | Note |
| ------------------------------ | ------------------------- | ---------------------------------------------- |
| `{{package.name}}` | `my-project` | Value from `name` field in **package.json** |
| `{{package.version}}` | `3.1.4` | Value from `version` field in **package.json** |
| `{{package.version | size}}` | `5` | Length of the version number string |
| `{{file.name}}` | `password-reset` | Source filename without the file extension |
| `{{file.path}}` | `web/password-reset.html` | Full path to source file |
| `<a href={{webRoot}}>Home</a>` | `<a href=../..>Home</a>` | Link is relative to the source folder |
| `{{"now" | date: "%Y-%m-%d"}}` | `2023-09-28` | Build date timestamp |
| `{{myVariable | upcase}}` | `DARK MODE` | Custom variable set with: `{% assign myVariable = 'dark mode' %}` |
| Source file text | Example output value | Note |
| ------------------------------- | ------------------------- | ---------------------------------------------- |
| `{{package.name}}` | `my-project` | Value from `name` field in **package.json** |
| `{{package.version}}` | `3.1.4` | Value from `version` field in **package.json** |
| `{{package.version \| size}}` | `5` | Length of the version number string |
| `{{file.name}}` | `password-reset` | Source filename without the file extension |
| `{{file.path}}` | `web/password-reset.html` | Full path to source file |
| `<a href={{webRoot}}>Home</a>` | `<a href=../..>Home</a>` | Link is relative to the source folder |
| `{{"now" \| date: "%Y-%m-%d"}}` | `2023-09-28` | Build date timestamp |
| `{{myVariable \| upcase}}` | `DARK MODE` | Custom variable set with: `{% assign myVariable = 'dark mode' %}` |

_**Note:** Use the `--no-liquid` flag if characters in your source files are inadvertently being interpreted as templating commands and causing errors._

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"copy-file-util": "~1.1",
"eslint": "~8.51",
"fetch-json": "~3.2",
"highlight.js": "~11.8",
"highlight.js": "~11.9",
"jshint": "~2.13",
"mocha": "~10.2",
"pretty-print-json": "~2.0",
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/target/mock1.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/highlight.min.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/highlight.min.js></script>
</head>
<body>
<header>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/target/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/highlight.min.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/highlight.min.js></script>
</head>
<body>
<header>
Expand Down

0 comments on commit 370ffbc

Please sign in to comment.