You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using remark-directives to mark up deleted and inserted text ranges within paragraphs (similar to critic markup). I use :del[old text ] and :ins[new text ] for this.
Currently, remark-directive does not respect empty spaces around the text. I saw #1 but think my case is slightly different as I use normal Markdown inside of the directive that should not be affected by putting it inside a directive. I don't see code fences as a viable workaround in this case.
Expected behavior
The trailing whitespace should be preserved.
Actual behavior
The trailing whitespace is removed.
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Webpack
The text was updated successfully, but these errors were encountered:
Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.
Initial checklist
Affected packages and versions
remark-directive 3.0.0
Link to runnable example
example
Steps to reproduce
I am using remark-directives to mark up deleted and inserted text ranges within paragraphs (similar to critic markup). I use
:del[old text ]
and:ins[new text ]
for this.Currently, remark-directive does not respect empty spaces around the text. I saw #1 but think my case is slightly different as I use normal Markdown inside of the directive that should not be affected by putting it inside a directive. I don't see code fences as a viable workaround in this case.
Expected behavior
The trailing whitespace should be preserved.
Actual behavior
The trailing whitespace is removed.
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Webpack
The text was updated successfully, but these errors were encountered: