Skip to content

Commit a0ffcfc

Browse files
Copilotbytestream
andauthored
Improve XML to Markdown conversion formatting
Agent-Logs-Url: https://github.com/jquery-validation/validation-content/sessions/3cd3a909-bae0-4790-b477-0bccbaf09aac Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>
1 parent 9e0ae64 commit a0ffcfc

23 files changed

Lines changed: 295 additions & 73 deletions

_entries/Validator.element.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ This behaves as validation on blur or keyup, but returns the result.
1717
## Usage
1818

1919
**element** *(Selector)*
20-
: An element to validate, must be inside the validated form.
20+
21+
An element to validate, must be inside the validated form.
2122

2223
## Examples
2324

_entries/Validator.numberOfInvalids.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ This depends on the internal validator state. It covers all fields only after va
1717
## Usage
1818

1919
**errors** *(Object)*
20-
: One or more key/value pairs of input names and messages.
20+
21+
One or more key/value pairs of input names and messages.
2122

2223
## Examples
2324

_entries/Validator.showErrors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Keys have to refer to the names of elements, values are displayed for those elem
1717
## Usage
1818

1919
**errors** *(Object)*
20-
: One or more key/value pairs of input names and messages.
20+
21+
One or more key/value pairs of input names and messages.
2122

2223
## Examples
2324

_entries/accept-method.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Uses the HTML5 file API to look at the type attribute of one or more selected fi
1818
## Usage
1919

2020
**mimetype** *(String)*
21-
: The allowed type, seperated via ",", defaults to "image/*"
21+
22+
The allowed type, seperated via ",", defaults to "image/*"
2223

2324
## Examples
2425

_entries/equalTo-method.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Returns true if the value has the same value as the element specified by the fir
1818
## Usage
1919

2020
**other** *(Selector)*
21-
: The selector for the element to compare the current values
21+
22+
The selector for the element to compare the current values
2223

2324
## Examples
2425

_entries/extension-method.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Returns true if the value ends with one of the specified file extensions. If not
1818
## Usage
1919

2020
**extension** *(String)* (optional)
21-
: The allowed file extensions, seperated with "|" (or a comma, ","), defaults to "png|jpe?g|gif".
21+
22+
The allowed file extensions, seperated with "|" (or a comma, ","), defaults to "png|jpe?g|gif".
2223

2324
## Examples
2425

_entries/jQuery.validator.addClassRules.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ Add a compound class method - useful to refactor common combinations of rules in
1515
### Form 1
1616

1717
**name** *(String)*
18-
: The name of the class rule to add
18+
19+
The name of the class rule to add
1920

2021
**rules** *(Object)*
21-
: The compound rules (see example)
22+
23+
The compound rules (see example)
2224

2325
### Form 2
2426

2527
**rules** *(Object)*
26-
: A map of className-rules pairs (see example).
28+
29+
A map of className-rules pairs (see example).
2730

2831
## Examples
2932

_entries/jQuery.validator.addMethod.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,28 @@ For simple one-off validation, you can use the bundled `pattern` method (in addi
1717
## Usage
1818

1919
**name** *(String)*
20-
: The name of the method used to identify it and referencing it; this must be a valid JavaScript identifier
20+
21+
The name of the method used to identify it and referencing it; this must be a valid JavaScript identifier
2122

2223
**method** *(Function)*
23-
: The actual method implementation, returning true if an element is valid. First argument: Current value. Second argument: Validated element. Third argument: Parameters.
2424

25-
- **value** *(String)*: the current value of the validated element
26-
- **element** *(Element)*: the element to be validated
27-
- **params** *(Object)*: parameters specified for the method, e.g. for min: 5, the parameter is 5, for range: [1, 5] it's [1, 5]
25+
The actual method implementation, returning true if an element is valid. First argument: Current value. Second argument: Validated element. Third argument: Parameters.
26+
27+
**value** *(String)*
28+
29+
the current value of the validated element
30+
31+
**element** *(Element)*
32+
33+
the element to be validated
34+
35+
**params** *(Object)*
36+
37+
parameters specified for the method, e.g. for min: 5, the parameter is 5, for range: [1, 5] it's [1, 5]
2838

2939
**message** *(String)* (optional)
30-
: The default message to display for this method. Can be a function created by ''jQuery.validator.format(value)''. When undefined, an existing message is used (handy for localization), otherwise the field-specific messages have to be defined.
40+
41+
The default message to display for this method. Can be a function created by ''jQuery.validator.format(value)''. When undefined, an existing message is used (handy for localization), otherwise the field-specific messages have to be defined.
3142

3243
## Examples
3344

_entries/jQuery.validator.format.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ One or more arguments can be passed, in addition to the string template itself,
1717
## Usage
1818

1919
**template** *(String)*
20-
: The string to format.
20+
21+
The string to format.
2122

2223
**argument** *(Object)*
23-
: The first argument to insert, or an array of Strings to insert
24+
25+
The first argument to insert, or an array of Strings to insert
2426

2527
**argumentN...** *(Object)*
26-
: The second etc. argument to insert
28+
29+
The second etc. argument to insert
2730

2831
## Examples
2932

_entries/jQuery.validator.setDefaults.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Accepts everything that [validate()](/validate) accepts.
1717
## Usage
1818

1919
**options** *(Object)*
20-
: Options to set as default.
20+
21+
Options to set as default.
2122

2223
## Examples
2324

0 commit comments

Comments
 (0)