-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Incorrect md obtained from bold text with spaces around #62
Comments
Yes! This seems to be https://github.com/orgs/syntax-tree/discussions/60#discussioncomment-2111096. It’s quite complex. |
Hi! This was marked as ready to be worked on! Note that while this is ready to be worked on, nothing is said about priority: it may take a while for this to be solved. Is this something you can and want to work on? Team: please use the |
Welcome @599316527! 👋 Non breaking spaces is not the same as a space. IIRC this effort is part of #12 |
Em, I just mean JFYI. My usage scenario is to obtain the data structure from the rich text editor and then convert it to the md ast. In the rich text editor, it is a common operation for users to enter spaces around bold text. I currently manually shift the edge spaces out of bold text to bypass this problem. |
If the intent is for users to be able to understand and edit the markdown directly. |
Yes, I agree with this, knowing that you are making a WYSIWYG editor experience. |
Hi! This was closed. Team: If this was fixed, please add |
Initial checklist
Affected packages and versions
mdast-util-to-markdown@2.1.0
Link to runnable example
https://codesandbox.io/p/sandbox/to-md-bold-text-with-around-spaces-ky39n9
Steps to reproduce
Expected behavior
Escape spaces on edges of bold text. (Bold text
A
->**A **
)Or for better visual experience, shift edge spaces out of bold text. (Bold text
A
->**A**
)Actual behavior
Spaces are not escaped on edges of bold text
Affected runtime and version
node@16.20.1
Affected package manager and version
npm@8.19.4
Affected OS and version
macOS Ventura 13.6.7
Build and bundle tools
webpack
The text was updated successfully, but these errors were encountered: