fix: unformatted text in the widgets docs page (#5954)

This commit is contained in:
Brijesh Bumrela 2021-11-08 18:46:29 +05:30 committed by GitHub
parent d188766b49
commit 9c8c14e9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,12 @@ The following options are available on all fields:
- `required`: specify as `false` to make a field optional; defaults to `true`
- `hint`: optionally add helper text directly below a widget. Useful for including instructions. Accepts markdown for bold, italic, strikethrough, and links.
- `pattern`: add field validation by specifying a list with a [regex pattern](https://regexr.com/) and an error message; more extensive validation can be achieved with [custom widgets](../custom-widgets/#advanced-field-validation)
- **Example:**
```yaml
- label: "Title"
name: "title"
widget: "string"
pattern: ['.{12,}', "Must have at least 12 characters"]
```
- **Example:**
```yaml
label: "Title"
name: "title"
widget: "string"
pattern: ['.{12,}', "Must have at least 12 characters"]
```
## Default widgets