diff --git a/pdoc/html_helpers.py b/pdoc/html_helpers.py index 47f7975f..48baa4de 100644 --- a/pdoc/html_helpers.py +++ b/pdoc/html_helpers.py @@ -237,6 +237,10 @@ def google(text): Convert `text` in Google-style docstring format to Markdown to be further converted later. """ + text = text.replace(":param", "\nArgs:\n ", 1) + text = text.replace(":param", " ") + text = text.replace(":return:", "\n\nReturns:") + def googledoc_sections(match): section, body = match.groups('') if not body: