Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mkdocs/mkdocs
/ dedent
Function
dedent
mkdocs/tests/base.py:15–16 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
13
14
15
def
dedent(text):
16
return
textwrap.dedent(text).strip()
17
18
19
def
get_markdown_toc(markdown_source):
Callers
15
test_find_toc_by_id
Method · 0.90
test_create_search_index
Method · 0.90
test_page
Method · 0.90
test_unicode_yaml
Method · 0.90
test_env_var_in_yaml
Method · 0.90
test_mm_meta_data
Method · 0.90
test_yaml_meta_data
Method · 0.90
test_yaml_meta_data_not_dict
Method · 0.90
test_yaml_meta_data_invalid
Method · 0.90
test_no_meta_data
Method · 0.90
test_indented_toc
Method · 0.90
test_indented_toc_html
Method · 0.90
Calls
no outgoing calls
Tested by
15
test_find_toc_by_id
Method · 0.72
test_create_search_index
Method · 0.72
test_page
Method · 0.72
test_unicode_yaml
Method · 0.72
test_env_var_in_yaml
Method · 0.72
test_mm_meta_data
Method · 0.72
test_yaml_meta_data
Method · 0.72
test_yaml_meta_data_not_dict
Method · 0.72
test_yaml_meta_data_invalid
Method · 0.72
test_no_meta_data
Method · 0.72
test_indented_toc
Method · 0.72
test_indented_toc_html
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…