Closed alexinuk closed 1 year ago
@alexinuk - This is expected behavior. Web Chat uses the markdown-it
package for MD support. Looking at their code, it looks like they replace multiple characters with just three of that kind (ref markdown-it/replacement.js.
lovelly thank you. Was that referenced anywhere else? We couldn't find a direct connection. Thanks a ton, Alessio
@alexinuk - No, not that I came across, at least. There is a way to pass in a custom markdown engine (ref this issue on how to do this). So, in theory, you could pass in different parameters or a different engine that better suits your needs.
Thanks @stevkan. This is correct.
Markdown-It is doing a lot of weird things outside of their scope by default. 😢
Sometimes, a library passing a standard test suite doesn't mean they are holding that standard.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
Latest
Describe the bug
When a message activity, default options, so textFormat should be MD, has a text value that contains more than three of some "special" characters, ! as well as . have been noticed, either Emulator as well as Webchat will change the representation to just three character (such as !!! or ..., even if the message contains hundreds of those chars).
Given that there shouldn't be standard MD behaviors for what I'm seeing, AFAIK, where I can get a list of those modification that are happening?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We were not expecting this behavior as part of standard MD behavior, so we need to understand what are the rules here.
Screenshots
<N/A>
Additional context
<N/A>
Tracking Status
Dotnet SDK [TODO]()
Javascript SDK [TODO]()
Python SDK [TODO]()
Java SDK [TODO]()
Samples [TODO]()
Docs [TODO]()
Tools [TODO]()