Skip to content

Commit e5b55e1

Browse files
committed
Remove unnecessary call to markdown() in hello chat template
1 parent 8f1d234 commit e5b55e1

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed
12 KB
Binary file not shown.

shiny/templates/chat/starters/hello/app-core.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
)
88

99
# Create a welcome message
10-
welcome = ui.markdown(
11-
"""
12-
Hi! This is a simple Shiny `Chat` UI. Enter a message below and I will
13-
simply repeat it back to you. For more examples, see this
14-
[folder of examples](https://github.com/posit-dev/py-shiny/tree/main/shiny/templates/chat).
15-
"""
16-
)
10+
welcome = """
11+
Hi! This is a simple Shiny `Chat` UI. Enter a message below and I will
12+
simply repeat it back to you. For more examples, see this
13+
[folder of examples](https://github.com/posit-dev/py-shiny/tree/main/shiny/templates/chat).
14+
"""
1715

1816

1917
def server(input, output, session):

shiny/templates/chat/starters/hello/app.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
)
99

1010
# Create a welcome message
11-
welcome = ui.markdown(
12-
"""
13-
Hi! This is a simple Shiny `Chat` UI. Enter a message below and I will
14-
simply repeat it back to you. For more examples, see this
15-
[folder of examples](https://github.com/posit-dev/py-shiny/tree/main/shiny/templates/chat).
16-
"""
17-
)
11+
welcome = """
12+
Hi! This is a simple Shiny `Chat` UI. Enter a message below and I will
13+
simply repeat it back to you. For more examples, see this
14+
[folder of examples](https://github.com/posit-dev/py-shiny/tree/main/shiny/templates/chat).
15+
"""
1816

1917
# Create a chat instance
2018
chat = ui.Chat(

0 commit comments

Comments
 (0)