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 medium-editor for my developing blog. I want to add code by copy-paste and then use prism.js to display it.
Currently when I copy & paste code, each line is a new paragraph. This does not work with prism.js. I would need real linebreaks.
How can I change that if I copy multiple lines that they are not in multiple paragraphs, but just separated by \n? Is this configurable?
Steps to reproduce
Copy multiple lines in editor
Expected behavior:
Lines should be seperated by new line
Actual behavior:
Lines are seperated by paragraph
Versions
medium-editor: 5.23.3
browser: Firefox 91.0.2
OS: Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
Description
I am using medium-editor for my developing blog. I want to add code by copy-paste and then use prism.js to display it.
Currently when I copy & paste code, each line is a new paragraph. This does not work with prism.js. I would need real linebreaks.
How can I change that if I copy multiple lines that they are not in multiple paragraphs, but just separated by \n? Is this configurable?
Steps to reproduce
Expected behavior:
Lines should be seperated by new line
Actual behavior:
Lines are seperated by paragraph
Versions
The text was updated successfully, but these errors were encountered: