# Markdown helper

_This file is intented to be viewed alongside its source in the lichen cms system. You can see it as intended by following this [link](cms/edit.php/cheatsheet.md), or by right-clicking and selecting `view source`. See full documentation of this specific flavour of markdown: [PHP Markdown](https://github.com/michelf/php-markdown?tab=readme-ov-file)_

## Headings

# Heading Level 1

## Heading Level 2

### Heading Level 3

## Text formatting

_Italicised text_, **bold text** and `code text`. Code text is made with back-ticks which can be weird to find on some keyboards. Look it up.

## Blockquote

> We live in capitalism. Its power seems inescapable. So did the divine right of kings. Any human power can be resisted and changed by human beings. Resistance and change often begin in art, and very often in our art - the art of words.

Ursula K. Le Guin

## Ordered list

1. A thing
2. Another thing
3. Even more of a thing

## Bullet list

- One bullet
- Another
- Also another

## Horizontal ruler

---

## Link

This is a fork of [the original php version of lichen](https://lichen.sensorstation.co/unmaintained//)

## A local image

![Image alt text here](/assets/dandi.jpg)

## An external image

![Image alt text here](https://cdn.dribbble.com/users/1570563/screenshots/5955986/dandelion_illustration_final_2_4x.jpg)

## Table

| Syntax   | Cool? |
| -------- | ----- |
| Markdown | Yes   |
| Gemini   | Yes   |

## Code Block

```ascii
       _                   _ _                _
 _   _| | ___ __ _   _  __| | |_   _ __   ___| |_
| | | | |/ / '__| | | |/ _` | __| | '_ \ / _ \ __|
| |_| |   <| |  | |_| | (_| | |_ _| | | |  __/ |_
 \__,_|_|\_\_|   \__,_|\__,_|\__(_)_| |_|\___|\__|
```

## Footnote

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

## Code comment 

<!-- This is a comment -->

A comment will not be displayed, it is used for leaving comments for people editing the source of a page.

## Heading ID

### Heading with an id {#cool-id}

[This is a link to the heading id](#cool-id)

## Definition List

term
: definition

## Escaping characters

Markdown symbols needs to be escaped when not used for markdown. Backslash is used for this: \\ \# \* \_ \*\* etc.

## Embedded HTML

Pure HTML can be embedded in Markdown as below:

<div style="background-color: #ff8800">
<p>Text with Orange Background</p>
</div>

To place Markdown inside HTML, specify the `markdown="1"` attribute:

<div style="background-color: #ff8800" markdown="1">
### Heading with Orange Background
</div>

