Skip to content

Commit 13c42f9

Browse files
committed
Fixed some README markdown syntax
1 parent 4a2a7c6 commit 13c42f9

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,38 @@ Please note: every `<li>` must have either one or two direct children, the first
3333

3434
<dl>
3535
<dt>tabSize</dt>
36-
<dd>How far right or left (in pixels) the item has to travel in order to be nested or to be sent outside its current list. Default: **20**</dd>
36+
<dd>How far right or left (in pixels) the item has to travel in order to be nested or to be sent outside its current list. Default: <b>20</b></dd>
3737
<dt>disableNesting </dt>
38-
<dd>The class name of the items that will not accept nested lists. Default: **ui-nestedSortable-no-nesting**</dd>
38+
<dd>The class name of the items that will not accept nested lists. Default: <b>ui-nestedSortable-no-nesting</b></dd>
3939
<dt>errorClass </dt>
40-
<dd>The class given to the placeholder in case of error. Default: **ui-nestedSortable-error**</dd>
40+
<dd>The class given to the placeholder in case of error. Default: <b>ui-nestedSortable-error</b></dd>
4141
<dt>listType </dt>
42-
<dd>The list type used (ordered or unordered). Default: **ol**</dd>
42+
<dd>The list type used (ordered or unordered). Default: <b>ol</b></dd>
4343
<dt>maxLevels </dt>
44-
<dd>The maximum depth of nested items the list can accept. If set to '0' the levels are unlimited. Default: **0**</dd>
44+
<dd>The maximum depth of nested items the list can accept. If set to '0' the levels are unlimited. Default: <b>0</b></dd>
4545
</dl>
4646

4747
## Custom Methods
4848

4949
<dl>
5050
<dt>serialize</dt>
51-
<dd>Serializes the nested list into a string like **setName[item1Id]=parentId&setName[item2Id]=parentId**, reading from each item's id formatted as 'setName_itemId' (where itemId is a number).
52-
It accepts the same options as the original Sortable method (**key**, **attribute** and **expression**).</dd>
51+
<dd>Serializes the nested list into a string like <b>setName[item1Id]=parentId&setName[item2Id]=parentId</b>, reading from each item's id formatted as 'setName_itemId' (where itemId is a number).
52+
It accepts the same options as the original Sortable method (<b>key</b>, <b>attribute</b> and <b>expression</b>).</dd>
5353
<dt>toArray</dt>
5454
<dd>Builds an array where each element is in the form:
55-
```
56-
setName[n] =>
55+
<pre>setName[n] =>
5756
{
5857
'item_id': itemId,
5958
'parent_id': parentId,
6059
'depth': depth,
6160
'left': left,
6261
'right': right,
6362
}
64-
```
65-
It accepts the same options as the original Sortable method (**attribute** and **expression**) plus the custom ** startDepthCount**, that sets the starting depth number (default is **0**).</dd>
63+
</pre>
64+
It accepts the same options as the original Sortable method (<b>attribute</b> and <b>expression</b>) plus the custom <b>startDepthCount</b>, that sets the starting depth number (default is <b>0</b>).</dd>
6665
<dt>toHierarchy</dt>
6766
<dd>Builds a hierarchical object in the form:
68-
```
69-
'0' ...
67+
<pre>'0' ...
7068
'id' => itemId
7169
'1' ...
7270
'id' => itemId
@@ -77,8 +75,8 @@ setName[n] =>
7775
'id' => itemId
7876
'2' ...
7977
'id' => itemId
80-
```
81-
Similarly to `toArray`, it accepts **attribute** and **expression** options.</dd>
78+
</pre>
79+
Similarly to <code>toArray</code>, it accepts <b>attribute</b> and <b>expression</b> options.</dd>
8280
</dl>
8381

8482
## Known Bugs
@@ -87,14 +85,14 @@ setName[n] =>
8785

8886
## Requirements
8987

90-
jQuery 1.4+
88+
jQuery 1.4+
9189
jQuery UI Sortable 1.8+
9290

9391
## Browser Compatibility
9492

9593
Tested with: IE 6/7/8, Firefox 3.6/4, Chrome, Safari 3
9694

97-
# License
95+
## License
9896

9997
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
10098

0 commit comments

Comments
 (0)