-
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
Markdown text inconsistencies #1984
Comments
This is not a problem with the JS renderer. It's a markdown issue, and is actually by design as far as I can tell. Use |
@dclaux yep I'm discovering that, we've got a whole lot of Markdown inconsistencies around text (as I've renamed the issue). JavaScript seems to handle it correctly (via use of the Markdown-It). Can't use |
There are numerous consistency issues between the JavaScript renderer and other renderers regarding Markdown-based content (like ignoring/preserving spaces, HTML entities, etc)
Repro payload
Repro payload
As seen on web Visualizer...
As seen with UWP renderer...
Ignoring/preserving spaces
The JavaScript renderer doesn't preserve whitespace within TextBlock text. Other renderers, like UWP, do. This is a consistency issue, and also blocks proposals like #1078 working for monospace blocks (since those need whitespace preserved).
However, note that according to Markdown specs it seems like whitespace should be trimmed.
HTML entities
We should have consistent behavior here. Looking at CommonMark's specification of Markdown, HTML entities should be understood and processed by Markdown. Considering we are supporting markdown in our text blocks, we should be doing this?
Newline behavior
According to Markdown specs, a single new line should be trimmed and treated as a single whitespace character (thus not creating a new line). 2 or more new lines should be treated as the start of a new paragraph.
The text was updated successfully, but these errors were encountered: