-
Notifications
You must be signed in to change notification settings - Fork 35
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
Don't strip non-breaking whitespace when reformatting (e.g. for Pandoc output) #1
Comments
Thank you for reaching out, but I could not get the point. "Trailing whitespace" you mean is (1) right padding of cells, or (2) right margin of rows? | ABC | DEF |
| ------- | --- |
| abc | def |
^^^ ^^^
(1) (2) And can you describe more detail what behavior you expect? |
Oh, sorry, it looks like I confused the words leading with trailing, sorry. What I would like to do:
but reformatting leads to
regardless of whether the spaces are breaking or non-breaking. Compiled with Pandoc to PDF this looks like this with normal spaces (that are stripped when reformatted) I was hoping there is a way that spaces could be preserved if they are non-breaking but not when they are breaking. Thanks for your quick reply! PS. I use your plug-in in atom, which I really really enjoy! |
Oh, I see. Thank you for explaining. I checked that both leading and trailing non-breaking spaces (U+00A0) are kept by Pandoc, while they are all stripped by marked and markdown-it (used by markdown-preview and markdown-preview-plus packages of Atom). FYI, an HTML escape sequence |
Thanks for the note on Do you think I should file an issue at marked and markdown-it, as well? (I hardly ever use them though, because I enjoy monospace prose too much, haha.) |
I think you should not unless you really want them to keep NBSPs! The option will be added in the next version. |
Thanks a lot, I'm looking forward to the next version! :) |
I would like to preserve trailing whitespace in my table to create a list-like feel.
I thought maybe non-breaking whitespaces might be preserved, but I assume they fall victim to the trimLeft command here:
https://github.com/susisu/mte-kernel/blob/master/lib/table-cell.js#L22
Would it be possible to preserve trailing non-breaking whitespaces?
The text was updated successfully, but these errors were encountered: