You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If library documentation is written as Markdown, as it is possible from 7.5 release, it would beneficial if libdoc could output library documentation also as Markdown. This is useful for many use cases.
AI/LLM
Example LLM can easily understand documentation that is written in Markdown format. Because Markdown contains less extra characters, example compared to XML or JSON, it will consume less tokens from the LLM context, which helps LLM to digest bigger libraries documentation and do more meaningful work.
Documentation publish systems
Many documentation publish systems do not accept standalone HTML pages, but they do accept Markdown documents. Then those documents can be easily published to different knowledge places, without needing to convert from one format to another.
Sounds good to me. This would in practice mean that we'd allow usages like this:
libdoc MyLibrary MyLibrary.md
This would generate a Markdown file with headings like Introduction, Importing and Keywords similarly as in Libdoc's HTML files. The actual docs would be got directly from the library, so this only really works with libraries using Markdown format.
We are planning to change Libdoc's console output format to Markdown as well (#5755). We'll do that first so that we can then reuse the new functionality. That way we also don't need to maintain multiple plain text output formats.
We did discuss this a bit more. We agreed that Markdown does not, for this release, support language selection.
Also we changed the output format somewhat and now args, raises and return are heading 4 and not bold text. This was done because headings work better for external consumers. Example linking works, indentation is better. So now format will look like
# MarkdownLibrary* Version: 1.0
* Scope: TEST
## Introduction
Intro doc.
## Importing#### Arguments*`arg` (type: `str`, default: `default`)
*`other` (type: `int`, default: `1`)
#### Documentation
Importing doc.
## Keywords### No Args Doc#### Arguments*`arg` (type: `str`)
#### Documentation
Args is here but no arg defined.
### No Doc#### Arguments*`arg` (type: `str`) -
arg doc.
### Positional And Named#### Arguments*`pos_only` (type: `str`, positional-only) -
positional-only argument.
*`normal` (type: `int`, default: `1`) -
normal argument document.
continues here.
*`named_only` (type: `str`, default: `default`, named-only) -
named-only argument.
#### Returns*`str` -
Always string.
#### Raises*`ValueError` -
Never
*`TypeError` -
Not ever
#### Tags*`tag1`*`tag2`#### Documentation
Keyword doc.
### Varargs And Kwargs#### Arguments*`*args` (type: `str`) -
varargs doc.
*`**kwargs` (type: `str`) -
keyword args doc.
#### Documentation
Doc for variable arguments and keyword arguments.
Activity
[-]Support generating libdoc documentation as markdown[/-][+]Libdoc: Support Markdown as output format[/+]pekkaklarck commentedon Aug 17, 2026
Sounds good to me. This would in practice mean that we'd allow usages like this:
This would generate a Markdown file with headings like
Introduction,ImportingandKeywordssimilarly as in Libdoc's HTML files. The actual docs would be got directly from the library, so this only really works with libraries using Markdown format.pekkaklarck commentedon Aug 17, 2026
Let's try to squash this into RF 7.5 that already has plenty of somewhat related enhancements.
pekkaklarck commentedon Aug 17, 2026
We are planning to change Libdoc's console output format to Markdown as well (#5755). We'll do that first so that we can then reuse the new functionality. That way we also don't need to maintain multiple plain text output formats.
aaltat commentedon Aug 25, 2026
We did discuss this a bit more. We agreed that Markdown does not, for this release, support language selection.
Also we changed the output format somewhat and now args, raises and return are heading 4 and not bold text. This was done because headings work better for external consumers. Example linking works, indentation is better. So now format will look like
When created from
Libdoc: Support for Markdown as output file format (#5764)