-
Hi, I'm trying to customize .use(remarkStringify, {handlers: {break: _ => ' \n'}}) But then the resulting output seems to lack the newline returned by the handler. I ended up having to use a workaround where I inserted an empty But now I'm running into this again, when making a custom I'm wondering why, in what situations, or at least how to prevent it? UpdateI guess I've found part of the answer to "why": syntax-tree/mdast-util-to-markdown#15 I'm still not sure how to achieve my real goal, which is to represent any text
<span>inline element</span> into a single one like: any text <span>inline element</span> I was trying to preserve such input as two separate lines. But the newline gets trimmed off the end of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
It’s something that many users have found complex, and tools have often trimmed away