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'm trying to compare two markdown files, using CodeMirrorMerge.
Using the documentation here, I've managed to produce what's shown in this screenshot:
In this example the text is a single "paragraph" of around 60 words. In practice, there will be many more paragraphs with more or less words.
The "original" text is on the left, and the "modified" is on the right. I want to potentially merge changes that are in modified to the original.
Question: Is there any way to wrap the text? It's near impossible to compare long lines (i.e. paragraphs) on a single line?
With CodeMirror from @uiw/react-codemirror, I can wrap text with the following code:
extensions={[vim({status: true}),markdown(),EditorView.lineWrapping,// <= right hereEditorView.contentAttributes.of({spellcheck: "true"}),]}
The wrapping looks like this:
I can't see a way to do this with CodeMirrorMerge.
The text was updated successfully, but these errors were encountered:
I'm trying to compare two markdown files, using CodeMirrorMerge.
Using the documentation here, I've managed to produce what's shown in this screenshot:
In this example the text is a single "paragraph" of around 60 words. In practice, there will be many more paragraphs with more or less words.
The "original" text is on the left, and the "modified" is on the right. I want to potentially merge changes that are in modified to the original.
Question: Is there any way to wrap the text? It's near impossible to compare long lines (i.e. paragraphs) on a single line?
With
CodeMirror
from@uiw/react-codemirror
, I can wrap text with the following code:The wrapping looks like this:
I can't see a way to do this with CodeMirrorMerge.
The text was updated successfully, but these errors were encountered: