Markdown from scratch · Chapter 1
Paragraphs and headings
Markdown is ordinary text with a few characters that say how it should look. Every note in nexlore is exactly such a file, ending in .md, and you can open and read it in any editor, even without nexlore at all.
A blank line separates paragraphs
Lines without a blank line between them belong to one paragraph. A blank line starts the next one.
Started the sourdough today. Feed it tomorrow morning. Baking on Saturday.
Started the sourdough today. Feed it tomorrow morning.
Baking on Saturday.
Here the first and the second line end up in the same paragraph, because in Markdown a single line break is just a space when you read the note.
Lore saysSome programs show a single line break as a new line, but nexlore sticks to Markdown. If you want a new line within the same paragraph, end the line with a \ or with two spaces.
Headings give your note a structure
A hash at the start of a line turns it into a heading, two hashes make a smaller one, and so on up to six. A space follows the hashes.
# Baking bread ## Ingredients ### For the starter
Baking bread
Ingredients
For the starter
Headings are more than big letters. nexlore builds the outline next to the note from them, and with [[Note#Ingredients]] you can link to exactly one heading.
Why paragraphs aren't indented
Several blank lines in a row count as a single one. Four spaces or a tab at the start of a line, on the other hand, turn it into code, and that's why paragraphs aren't indented in Markdown.
| You write | You get |
|---|---|
| a blank line | a new paragraph |
| a single line break | a space, the same paragraph |
\ or two spaces at the end of a line | a new line in the same paragraph |
# to ###### and a space | a heading of level 1 to 6 |
Lore saysIn nexlore's editor you don't have to type any of this yourself. You pick the paragraph type in the toolbar, and Enter starts a new paragraph. Knowing Markdown still helps, because that's exactly how it ends up in the file.