I want to add a line of space between paragraphs in the editor and reading mode.
Things I have tried
I have created a css file using bracketes in the snippets directory for this vault and pasted in the solution from this forum thread:
p{
line-height: 1.4; /* change this value accordingly */
display: block;
padding-top: 6px; /* change this value accordingly */
padding-bottom: 6px; /* change this value accordingly */
margin-block-start: 0em;
margin-block-end: 0em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
but nothing changes.
I have looked at other topics where people are struggling getting css to work, but the solutions aren’t working for me. I am using Brackets to create the css file so its not the usual problem with rtf that happens on macs.
I’m new to this and I must be missing a step that is really essential. Thanks for your help.
The .css file i am using and a screenshot of my CSS Snippets settings is attached. I have also included screenshots from my editor / reading view
In your sample note, are you aiming for four paragraphs? How are you ending the paragraphs? With a space and one enter? A double space and one enter? CSS can change the spacing of paragraphs, for sure, but I think this might be a markdown issue.
To create paragraphs, use a blank line to separate one or more lines of text.
It might be helpful to link your sample note.md (like you did with the .css file) so we can have a look at the source
Musk, who purchased the company for $44b in 2022 and has thus far struggled to make it profitable, has been threatening to remove what he called "legacy blue checks" for months now. The check mark previous denoted accounts that had been verified for authenticity and was given to accounts of celebrities, journalists and media outlets.
Now users seeking verification will have to pay for [Twitter](https://twitter.com) Blue, a controversial $8 a month subscription program under which any account can obtain a blue check mark.
The roll-out of the changes on Thursday was chaotic. Numerous high-profile users took to the platform to assert they would not pay for blue check marks under the new policy, while others announced they would leave the platform entirely.
Nonprofit organizations Human Rights Watch and the [NAACP](https://twitter.com/naacp) have [tweeted](https://twitter.com/NAACP/status/1649199696626294784) they will not be paying for Twitter Blue.
I see, what you are saying, that markdown prefers I manually insert a space rather than relying on some styling to insert a space in between. Okay. I am still used to word processors like LibreOffice where you can have the space come automatically between paragraphs without hitting enter twice.
I am creating the paragraphs by ending the sentence and then pressing enter.
Afterwards I am starting to write on a new line, and I was hoping that it would be possible to automatically have space in between without the need for me to hit enter twice.
Uploading the sample note now. Test Note.md (1.0 KB)
Yes, your file will need blank lines as eightning showed.
Writing in Markdown takes a little bit to get used to but it’s easy to pick up. When in doubt or something looks weird, put a blank line before and after your content . While Obsidian actually uses Commonmark, the Markdown Guide is more user friendly and good to refer to if you have Markdown questions.
The official Obsidian help documentation on formatting your notes is here:
So, I would call this “writers mode” for Obsidian - so that text is formatted in a way which is pleasing to writers - a bit of breathing space between paragraphs (but not between items in a list, or in a code or callout block).
And here are the instructions again.
Go to Settings / Appearance / CSS Snippets.
Click on the folder icon.
In the folder that opens create a file with a .css ending and paste the following (it’s best to use a code editor like Brackets):