docs(fix): widget example code layout on Site (#1606)

* Fix widget example layout

* Stop running MarkDown through Prettier.
This commit is contained in:
Tony Alves
2018-08-14 07:37:07 -07:00
committed by Caleb
parent 05622b8eee
commit 583377bc92
16 changed files with 136 additions and 162 deletions

View File

@ -18,12 +18,11 @@ The following options are available on all fields:
- `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](https://www.netlifycms.org/docs/custom-widgets/#advanced-field-validation)
- **Example:**
```yaml
- label: 'Title'
name: 'title'
widget: 'string'
pattern: ['.{12,}', 'Must have at least 12 characters']
```
```yaml
- label: 'Title'
name: 'title'
widget: 'string'
pattern: ['.{12,}', 'Must have at least 12 characters']
```
## Default widgets