We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As far as I know, pc.markdown get value as only string.
So if i compile this code,
class State(pc.State): text: str = "**Bold Text**" def get_some_markdown_string_from_db(self): #Blah Blah self.text = "Some-Markdown-String" def index(): return pc.container( pc.markdown(State.text), pc.button(on_click = State.get_some_markdown_string_from_db) )
Unlike my expectation, sadly I got error because mState.text is not a string, but State variable.
But I want to get the strings written in markdown to State from db and display them in the markdown form.
Is there any way to implement this?
The text was updated successfully, but these errors were encountered:
Ah ok we can fix this, looks like we need to make it accept var type as well. Thanks for pointing this out
Sorry, something went wrong.
pc.markdown
Successfully merging a pull request may close this issue.
As far as I know, pc.markdown get value as only string.
So if i compile this code,
Unlike my expectation, sadly I got error because mState.text is not a string, but State variable.
But I want to get the strings written in markdown to State from db and display them in the markdown form.
Is there any way to implement this?
The text was updated successfully, but these errors were encountered: