Markdown from scratch · Chapter 6
Quotes, code and dividers
To round off the basics, this chapter covers three blocks that stand out from the running text, namely quotes, code blocks and dividers.
Quoting something
An angle bracket at the start of a line turns it into a quote. A quote may have several paragraphs and contain Markdown itself.
> The bread is done when it sounds hollow. > > **Grandma**, every Saturday
The bread is done when it sounds hollow.
Grandma, every Saturday
If the first line of a quote says [!tip], it turns into a coloured box. You'll find out how under Callouts.
Showing code with colours
If you put three backticks before and after, everything in between stays exactly as it is, indentation included. When you write the language after the first three backticks, nexlore colours the code.
```yaml
services:
nexlore:
ports:
- "8470:8000"
```services:
nexlore:
ports:
- "8470:8000"Some languages nexlore doesn't show as code but draws instead, such as mermaid as a diagram (Diagrams) and base as a view over your notes (Views). Code blocks of plugins nexlore doesn't know, such as dataview, simply stay code.
Separating sections with a line
Three hyphens alone on a line draw a line across the note. Put a blank line before it, otherwise the line above would become a heading.
First part. --- Second part.
First part.
Second part.
What happens to HTML in a note
Markdown allows HTML in the middle of the text. nexlore only shows it as text, though, and never runs it, because notes can also come from other people or from an AI. It stays in the file all the same, so other programs still see it.
Lore saysThose were the basics. From here on it's about extensions that go beyond plain Markdown and that nexlore reads and writes. Wiki links come next.