Formatting fix

This commit is contained in:
pietervdvn 2021-10-29 13:35:33 +02:00
parent 28429df819
commit 2d5d3fbd96
2 changed files with 54 additions and 53 deletions

View file

@ -60,8 +60,8 @@ removePostfixes | remove these snippets of text from the end of the passed strin
]
}
]
}
```
}
```
## int
@ -118,7 +118,7 @@ postfix | Piece of text that will always be added to the end of the generated op
```
"freeform": {
"freeform": {
"key": "access:conditional",
"type": "opening_hours",
"helperArgs": [
@ -127,9 +127,10 @@ postfix | Piece of text that will always be added to the end of the generated op
"postfix":")"
}
]
}```
}
```
*Don't forget to pass these in the rendering as well*: `{opening_hours_table(opening_hours,yes @ &LPARENS, &RPARENS )`
*Don't forget to pass the prefix and postfix in the rendering as well*: `{opening_hours_table(opening_hours,yes @ &LPARENS, &RPARENS )`
## color

View file

@ -73,8 +73,8 @@ class WikidataTextField implements TextFieldDef {
]
}
]
}
\`\`\``
}
\`\`\``
]).AsMarkdown()
@ -154,7 +154,7 @@ class OpeningHoursTextField implements TextFieldDef {
]),
new Title("Example usage"),
"To add a conditional (based on time) access restriction:\n\n```\n" + `
"freeform": {
"freeform": {
"key": "access:conditional",
"type": "opening_hours",
"helperArgs": [
@ -163,7 +163,7 @@ class OpeningHoursTextField implements TextFieldDef {
"postfix":")"
}
]
}` + "```\n\n*Don't forget to pass these in the rendering as well*: `{opening_hours_table(opening_hours,yes @ &LPARENS, &RPARENS )`"]).AsMarkdown()
}` + "\n```\n\n*Don't forget to pass the prefix and postfix in the rendering as well*: `{opening_hours_table(opening_hours,yes @ &LPARENS, &RPARENS )`"]).AsMarkdown()
isValid() {