From 9c8c14e9acfbf710c019820c700e1f17c57dd78f Mon Sep 17 00:00:00 2001 From: Brijesh Bumrela Date: Mon, 8 Nov 2021 18:46:29 +0530 Subject: [PATCH] fix: unformatted text in the widgets docs page (#5954) --- website/content/docs/widgets.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/content/docs/widgets.md b/website/content/docs/widgets.md index e4c2108d..439409fc 100644 --- a/website/content/docs/widgets.md +++ b/website/content/docs/widgets.md @@ -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