cosapp.tools.views.markdown¶
Mardown viewers for Module and Port.
Functions
|
Returns the representation of port in Markdown format. |
|
Returns the representation of system in Markdown format. |
|
Return a copy of the input string, with the first character in upper case. |
Return a copy of the input string, ensuring it ends with a dot. |
Classes
|
Markdown table formatter for ports |
- class cosapp.tools.views.markdown.PortMarkdownFormatter(port: BasePort)[source]¶
Bases:
objectMarkdown table formatter for ports
- content(contextual=True) list[str][source]¶
Returns the port representation in Markdown format, as a list of strings.
- Parameters:
contextual (bool) – If True (default), uses port full name; if False, displays only port name.
- Returns:
list of Markdown strings representing port variables as a table, with header.
- Return type:
list[str]
- markdown(contextual=True) str[source]¶
Returns the port representation in Markdown format.
- Parameters:
contextual (bool) – If True (default), uses port full name; if False, displays only port name.
- Returns:
Markdown formatted representation
- Return type:
str
- cosapp.tools.views.markdown.port_to_md(port: BasePort) str[source]¶
Returns the representation of port in Markdown format.
- Parameters:
port (BasePort) – Port to describe
- Returns:
Markdown formatted representation
- Return type:
str
- cosapp.tools.views.markdown.system_to_md(system: System) str[source]¶
Returns the representation of system in Markdown format.
- Parameters:
system (System) – System to describe
- Returns:
Markdown formatted representation
- Return type:
str