Skip to content

Commit

Permalink
doc(formatting): Show new usage of quoteblock and pre
Browse files Browse the repository at this point in the history
  • Loading branch information
pham committed Jan 22, 2023
1 parent a29a91f commit 7644ed5
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions content/_session/parts/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ Last header is special, `<h6>` has a dark theme.

### Quotations

Quotations begin with a `>`. To separate the lines put a space between lines prefixed with `>` or use `<br/>`.
Quotations begin with a `>`. To add a line-break use `<br/>`.

> Thus conscience does make cowards of us all.
> <br/>&mdash; Shakespeare
Space them between a blank line to add a small gap:

> As the death-bed whereon it must expire
> <br/>Consumed with that which it was nourish’d by.
> This thou perceivest, which makes thy love more strong,
> <br/>To love that well which thou must leave ere long.
> &mdash; Shakespeare

----

Expand Down Expand Up @@ -161,6 +169,28 @@ _Note:_ You need to make the screen narrower to see the hanging indentation.
<dd>That makes calamity of so long life;</dd>
</dl>
----
### Blocks of Texts
Normal code block will not wrap `white-space`.
```
<html>
<head>
<title>AskClass Theme</title>
</head>
<body>
Welcome friend!
</body>
</html>
```
If you want to wrap `white-space` use `<pre>`:
<pre>
In me thou see’st the glowing of such fire \ That on the ashes of his youth doth lie, \ As the death-bed whereon it must expire \ Consumed with that which it was nourish’d by.
</pre>
<hr class='logo' />
[Markdown Math]: https://acn.askclass.com/2022/06/20/markdown-math-support
Expand Down

0 comments on commit 7644ed5

Please sign in to comment.