-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
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
Unable to put a literal * into visualizer #523
Comments
It functions per markdown spec. Every line of text is processed with markdown. The only thing I can think of would be to have an explicit property on TextBlock to bypass Markdown processing. |
The official solution is this:
But that won't work in the visualizer. |
|
I think there's a few things to consider. Do we want to support full markdown syntax in Textblocks, or limit it to what we have in the spec right now? ie. Bold, italics, possibly links. |
We should kickup another topic on what specific markdown features we want to support. For this particular issue, I was thinking maybe we introduce a LITERAL() function similar to our DATE and TIME functions.
Would output |
My quick thoughts on this is that by default, markdown should NOT be enabled. Otherwise you're going to get devs passing in plain text from users (like an IM message) which potentially has things like I don't believe most devs are going to understand/think that the text blocks use markdown by default, and therefore they won't know they need to pre-process and escape their text before inserting it into the card they're generating. Therefore, opt-in for markdown would make more sense. Those that are explicitly using markdown can enable support for it on a per-textblock basis. |
@andrewleader / @matthidinger / @dclaux is this still relevant today and would using RichTextBlocks with the markdown support solve this ? |
Still relevant today. My preferred solution is to allow opting out of Markdown. Like Andrew I would rather make it an opt-in thing, but we have shipped with Markdown processing always applied. We can't remove that. |
You mean RichTextBlocks without markdown support, and yes that would solve it, but that's a less-ideal way of solving it. We simply need to have a property on TextBlock that lets you disable markdown. |
Thanks this helps with context and i also tried it in the designer and noticed the irregularity Matt had been noticing where text is being interpreted as markdown by default! Which is not intuitive. |
@andrewleader assigning to you temporarily to help create the platform-specific bugs; please reassign to me once we have teh platform-specific bugs are created! Thanks |
We have another issue where we discuss possible designs for this, and should revisit them. There are at least 3 decent ways to solve this which have been proposed. Searching open markdown issues should hopefully find it |
Hi @matthidinger. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions. |
Tracked by #1984 |
Depending on the number of * it behaves differently. Escaping it doesn't seem to help either
The text was updated successfully, but these errors were encountered: