Skip to content

Commit 4e7ec7e

Browse files
committed
Get MarkdownStream() working in modules
1 parent a781305 commit 4e7ec7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shiny/ui/_markdown_stream.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from .. import _utils, reactive
77
from .._docstring import add_example
8+
from .._namespaces import resolve_id
89
from .._typing_extensions import TypedDict
910
from ..session import require_active_session
1011
from ..types import NotifyException
@@ -71,7 +72,7 @@ def __init__(
7172
*,
7273
on_error: Literal["auto", "actual", "sanitize", "unhandled"] = "auto",
7374
):
74-
self.id = id
75+
self.id = resolve_id(id)
7576
# TODO: remove the `None` when this PR lands:
7677
# https://github.com/posit-dev/py-shiny/pull/793/files
7778
self._session = require_active_session(None)
@@ -282,6 +283,6 @@ def output_markdown_stream(
282283
"content-type": content_type,
283284
"auto-scroll": "" if auto_scroll else None,
284285
},
285-
id=id,
286+
id=resolve_id(id),
286287
content=content,
287288
)

0 commit comments

Comments
 (0)