Skip to content

Is there a way to disable trailing whitespace character ( )? #122

Discussion options

You must be logged in to vote

You can see this behavior in https://milkdown.dev/playground which implements this library in the background.

Milkdown adds its own transforms.
If you use mdast-util-to-markdown directly through remark no character is added.
https://codesandbox.io/p/devbox/crazy-fermi-lzjy7p?file=%2Fsrc%2Fmain.ts%3A24%2C1&workspaceId=d845f959-45b3-427c-9d19-50c1c90a9035

This behavior is being set by Milkdown through a custom plugin https://github.com/Milkdown/milkdown/blob/063238906971aceed1bdafd6b5a634433dd4da3b/packages/preset-commonmark/src/plugin/remark-line-break.ts#L7C1-L9

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dannyadkins
Comment options

@ChristianMurphy
Comment options

Answer selected by dannyadkins
@ChristianMurphy
Comment options

@dannyadkins
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants