Md utils
make_bullet(value, indents=0)
¶
Return string with 4 spaces per indent, plus -
Source code in automation/utils/md_utils.py
1 2 3 4 |
|
make_link(value, indents=0)
¶
Make relative within-doc bulleted link for TOC. name
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
heading name |
required |
indents |
int
|
indent level for heading |
0
|
Returns:
Name | Type | Description |
---|---|---|
link |
str
|
markdown formatted indented bullet with relative path for
table of contents. E.g., |
Source code in automation/utils/md_utils.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
make_header(value, level=0)
¶
Return string with level+1 * #
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
heading content |
required |
level |
int
|
heading level. e.g., |
0
|
Source code in automation/utils/md_utils.py
23 24 25 26 27 28 29 30 31 |
|