@@ -60,8 +60,8 @@ class MarkdownStream:
6060
6161 Note
6262 ----
63- Markdown is parsed on the client via `marked.js`. Consider using :func:`~shiny.ui.markdown`
64- for server-side rendering of markdown content.
63+ Markdown is parsed on the client via `marked.js`. Consider using
64+ :func:`~shiny.ui.markdown` for server-side rendering of markdown content.
6565 """
6666
6767 def __init__ (
@@ -97,31 +97,30 @@ def ui(
9797 Create a UI element for this `MarkdownStream`.
9898
9999 This method is only relevant for Shiny Express. In Shiny Core, use
100- :func:`~shiny.ui.markdown_stream_ui` for placing the markdown stream
101- in the UI.
100+ :func:`~shiny.ui.markdown_stream_ui` to create the UI element.
102101
103102 Parameters
104103 ----------
105104 content
106- Some content to display before any streaming occurs .
105+ Content to display when the UI element is first rendered .
107106 content_type
108- The content type. Default is "markdown" (specifically, CommonMark).
107+ The content type. Default is ` "markdown"` (specifically, CommonMark).
109108 Other supported options are:
110109 - `"html"`: for rendering HTML content.
111110 - `"text"`: for plain text.
112111 - `"semi-markdown"`: for rendering markdown, but with HTML tags escaped.
113112 auto_scroll
114113 Whether to automatically scroll to the bottom of a scrollable container
115- when new content is added. Default is True.
114+ when new content is added. Default is ` True` .
116115 width
117- The width of the markdown stream container .
116+ The width of the UI element .
118117 height
119- The height of the markdown stream container .
118+ The height of the UI element .
120119
121120 Returns
122121 -------
123122 Tag
124- The UI element for this markdown stream .
123+ A UI element for locating the `MarkdownStream` in the app .
125124 """
126125 return markdown_stream_ui (
127126 self .id ,
@@ -140,7 +139,7 @@ async def stream(
140139 """
141140 Send a stream of content to the UI.
142141
143- This method streams content into the relevant UI element.
142+ Stream content into the relevant UI element.
144143
145144 Parameters
146145 ----------
@@ -187,7 +186,7 @@ async def _handle_error():
187186
188187 async def clear (self ):
189188 """
190- Clear the content of the markdown stream .
189+ Empty the UI element of the `MarkdownStream` .
191190 """
192191 return await self .stream ([], clear = True )
193192
@@ -248,13 +247,13 @@ def markdown_stream_ui(
248247 Create a UI element for a :class:`~shiny.ui.MarkdownStream`.
249248
250249 This method is only relevant for Shiny Core. In Shiny Express, use
251- :meth:`~shiny.ui.MarkdownStream.ui` to get the UI element for the markdown stream
250+ :meth:`~shiny.ui.MarkdownStream.ui` to create the UI element.
252251
253252 Parameters
254253 ----------
255254 id
256- A unique identifier for the UI element containing the markdown stream.
257- This id should match the id of the :class:`~shiny.ui.MarkdownStream` instance.
255+ A unique identifier for the UI element. This id should match the id of the
256+ :class:`~shiny.ui.MarkdownStream` instance.
258257 content
259258 Some content to display before any streaming occurs.
260259 content_type
@@ -267,9 +266,9 @@ def markdown_stream_ui(
267266 Whether to automatically scroll to the bottom of a scrollable container
268267 when new content is added. Default is True.
269268 width
270- The width of the markdown stream container .
269+ The width of the UI element .
271270 height
272- The height of the markdown stream container .
271+ The height of the UI element .
273272 """
274273 return Tag (
275274 "shiny-markdown-stream" ,
0 commit comments