forked from ptweir/python-string-sql
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Problem
HTML comments like <!-- md --> in Python docstring are not removed when rendering by streamlit. This is different than what I was expecting. We need investigate how Python docstring is rendered by streamlit.
This promblem is like below:
Solution
Maybe, we can find the solution to this problem by reading a part of docstring parser in streamlit's implementation:
streamlit/DeltaGenerator.py(line 229 ~)DeltaGenerator.text()(line 442 ~)DeltaGenerator.markdown()(line 463 ~)
In addition, docstirng is treated as "magic command" in streamlit. May be there's a hint of a solution in streamlit's documentation.
How it works is simple: any time Streamlit sees either a variable or literal value on its own line, it automatically writes that to your app using st.write (which you’ll learn about later).
Metadata
Metadata
Assignees
Labels
No labels

