markdown
header​
Description​
Method that generate a markdown header randomly.
Parameters​
| Name | Type | Description |
|---|---|---|
| num | <Number> | How many heading tags will be generated. Default value is 1 |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.markdown.header());- result
'# aut'Describing that i want the level of the header to be 5
- code
console.log(pure.markdown.header(5));- result
'##### architecto'
emphasis​
Description​
Method that generate random text with markdown emphasis.
Parameters​
| Name | Type | Description |
|---|---|---|
| types | <String> | String containing what emphasis generated text will use. Default value is randomized from this types: '_','~','*','**' |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.markdown.emphasis());- result
'*qui* possimus aut'Describing that i want the text generated to have
_as emphasis- code
console.log(pure.markdown.emphasis('_'));- result
'velit _eligendi_ explicabo'
table​
Description​
Method that generate a markdown table randomly.
Parameters​
| Name | Type | Description |
|---|---|---|
| num | <Number> | How many table rows will be generated. Default value is 3 |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.markdown.table());- result
| head1 | head2 | head3 |
|:-----:|:-----:|:-----:|
|perspiciatis|architecto|voluptatem|
|officiis|animi|non|
|optio|dolorem|autem|Describing that i want the table generated to have only 2 rows
- code
console.log(pure.markdown.table(2));- result
| head1 | head2 | head3 |
|:-----:|:-----:|:-----:|
|similique|saepe|laborum|
|nam|vitae|pariatur|
orderedList​
Description​
Method that generate a markdown ordered list randomly.
Parameters​
| Name | Type | Description |
|---|---|---|
| num | <Number> | How many items in list will be generated. Default value is 3 |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.markdown.orderedList());- result
1. temporibus
2. esse
3. veroDescribing that i want the list generated to have 6 items
- code
console.log(pure.markdown.orderedList(6));- result
1. itaque
2. non
3. quidem
4. ut
5. quia
6. nam
unorderedList​
Description​
Method that generate a markdown unordered list randomly.
Parameters​
| Name | Type | Description |
|---|---|---|
| num | <Number> | How many items in list will be generated. Default value is 3 |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.markdown.unorderedList());- result
* laborum
* sapiente
* idDescribing that i want the list generated to have 6 items
- code
console.log(pure.markdown.unorderedList(6));- result
* aut
* temporibus
* nesciunt
* molestiae
* aut
* ut
inlineCode​
Description​
Method that generate random text with markdown inline code.
Parameters​
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returns​
- <String>
Usage​
- Without passing parameters
- code
console.log(pure.markdown.inlineCode());- result
` quo `
blockCode​
Description​
Method that generate random text with markdown block code.
Parameters​
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returns​
- <String>
Usage​
- Without passing parameters
- code
console.log(pure.markdown.blockCode());- result
```javascript
dolores
```