-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown monospace/code format does not work properly with linebreaks #308
Comments
Hey, first time here, is this open for PRs? I'm interested in contributing |
@hammsvietro Yes, go ahead. And welcome :) |
thanks :D |
I would expect purple highlighting, but if not, at least yes some highlighting |
Ok, I'll work on it as soon as I can :) |
@Porrumentzio @Nutomic I was looking at the code, and it looks like all the markdown styling is inherited from the selected theme. Should we proceed and override those? |
I think that each theme should be modified so it works as intended, better than overriting (as that is destructive/blocking) |
sorry, i didn't get it, what exactly should be modified each time? |
Each theme should be modified for appropriate formatting (purpling monospace) |
ok, I'll try that |
@Porrumentzio Just updated all the themes to use it's default purple as the multi-line code color |
Issue Summary
Linebreaks are not kept when selecting multiple lines and clicking monospace formatting button. Doesn't mind if the linebreaks have two spaces or not.
Steps to Reproduce
Proposal
Monospace formatting button should detect whether selection has multiple lines and if yes, prepend and append three grave accents, a line before and after:
This way the linebreaks are ketp. Nevertheless, currently, using three grave accents the text is not highlighted in purple, so that should be added too.
Technical details
https://lemmy.eus, lemmy
v0.11.0
The text was updated successfully, but these errors were encountered: