tests/testthat/_snaps/markdown-stream.md

Chat component markup

Code
  output_markdown_stream("stream")
Output
  <shiny-markdown-stream id="stream" style="width:min(680px, 100%);height:auto;margin:0 auto;" content="" content-type="markdown" auto-scroll="TRUE"></shiny-markdown-stream>
Code
  output_markdown_stream("stream", content = "Foo\nBar")
Output
  <shiny-markdown-stream id="stream" style="width:min(680px, 100%);height:auto;margin:0 auto;" content="Foo&#10;Bar" content-type="markdown" auto-scroll="TRUE"></shiny-markdown-stream>
Code
  render_tags(output_markdown_stream("stream", content = div("Hello",
    htmlDependency("foo", "1.0.0", ""))))
Output
  $deps
  [{"name":"foo","all_files":true},{"name":"shinychat","script":{"src":"markdown-stream/markdown-stream.js","type":"module"},"stylesheet":"markdown-stream/markdown-stream.css","all_files":true}]

  $html
  <shiny-markdown-stream id="stream" style="width:min(680px, 100%);height:auto;margin:0 auto;" content="&lt;div&gt;Hello&lt;/div&gt;" content-type="markdown" auto-scroll="TRUE"></shiny-markdown-stream>


Try the shinychat package in your browser

Any scripts or data that you put into this service are public.

shinychat documentation built on June 10, 2025, 9:09 a.m.