-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f832aa
commit 27e77ed
Showing
4 changed files
with
198 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,184 @@ | |
date: 2024-01-01 12:00:01 | ||
slug: blog-post | ||
title: Markdown Powered Blog Post (with code blocks) | ||
tags: markdown, python, rust, another tag | ||
tags: markdown, python, rust, Common Mark | ||
--- | ||
|
||
# This is the post content | ||
|
||
The content here accepts any valid `CommonMark` or **Github** _Flavoured_ markdown. | ||
The content here accepts any valid `CommonMark` or **Github** _Flavoured_ markdown | ||
and some `micromark` extensions. | ||
|
||
You can add: | ||
Simple paragraph and usual formatting like **bold**,__underline__,*italic* | ||
and also all sorts of formatting elements. | ||
|
||
### lists | ||
|
||
- lists | ||
- sub item | ||
- images | ||
* other | ||
- tables | ||
- Formatting | ||
|
||
## Subtitles | ||
Numbered | ||
|
||
1. First item | ||
1. Second item | ||
- Indented unordered item | ||
- Indented unordered item | ||
1. Third item | ||
1. Indented ordered item | ||
1. Indented ordered item | ||
1. Fourth item | ||
|
||
Starting lists with numbers requires a `number\` | ||
|
||
- 1983\. A great year! | ||
- I think 1984 was second best. | ||
|
||
### Images | ||
|
||
|
||
Photo | ||
![Photo](./media/marmite.jpg) | ||
|
||
Same but containing a tooltip if you hover the mouse on | ||
![Photo](./media/marmite.jpg "A jar of Marmite") | ||
|
||
|
||
### Symbols | ||
|
||
|
||
Copyright (©) — © | ||
Registered trademark (®) — ® | ||
Trademark (™) — ™ | ||
Euro (€) — € | ||
Left arrow (←) — ← | ||
Up arrow (↑) — ↑ | ||
Right arrow (→) — → | ||
Down arrow (↓) — ↓ | ||
Degree (°) — ° | ||
Pi (π) — π | ||
|
||
This is a ©left material. | ||
|
||
### Strike | ||
|
||
The folling is now ~~not valid~~ anymore. | ||
|
||
### Table | ||
|
||
|
||
| String | g | 颪 | 🦀 | | ||
|---------|----------|----------------------------|-------------------------------------| | ||
| Unicode | 103 | 39082 | 129408 | | ||
| Binary | 01100111 | 11101001 10100010 10101010 | 11110000 10011111 10100110 10000000 | | ||
|
||
Lists Within Table Cells | ||
|
||
You can add a list within a table cell by using HTML tags. | ||
|
||
| Syntax | Description | | ||
| ----------- | ----------- | | ||
| Header | Title | | ||
| List | Here's a list! <ul><li>Item one.</li><li>Item two.</li></ul> | | ||
|
||
|
||
### Autolink | ||
|
||
https://github.com/rochacbruno/marmite | ||
[A link with a tooltip](https://pudim.com.br "A picture of a pudim") | ||
<https://www.markdownguide.org> | ||
<[email protected]> | ||
|
||
### Task | ||
|
||
- [x] Task 1 | ||
- [ ] Task 2 | ||
|
||
## Superscript | ||
|
||
80^2^ | ||
|
||
## Footnotes | ||
|
||
Here is a simple footnote[^1]. With some additional text after it. | ||
|
||
A reference[1] can also be hidden from footnotes. | ||
|
||
## Description lists | ||
|
||
And also basic coding formatting. | ||
First term | ||
|
||
: Details for the **first term** | ||
|
||
Second term | ||
|
||
: Details for the **second term** | ||
|
||
More details in second paragraph. | ||
|
||
## Block quote | ||
|
||
>No Quote | ||
> quote | ||
> > > Nested quote | ||
Multiline quote | ||
|
||
>>> | ||
"Marmite is the easiest SSG" created by | ||
Bruno Rocha with the contribution of various people. | ||
>>> | ||
Multi paragraph quote | ||
|
||
> Dorothy followed her through many of the beautiful rooms in her castle. | ||
> | ||
> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with | ||
Rich quotes | ||
|
||
> #### The quarterly results look great! | ||
> | ||
> - Revenue was off the chart. | ||
> - Profits were higher than ever. | ||
> | ||
> *Everything* is going according to **plan**. | ||
|
||
## Emojis | ||
|
||
:smile: - :crab: - :snake: | ||
``` | ||
:smile: - :crab: - :snake: | ||
``` | ||
|
||
|
||
## Math | ||
|
||
Inline math $1 + 2$ and display math $$x + y$$ | ||
|
||
$$ | ||
x^2 | ||
$$ | ||
|
||
Inline math $`1 + 2`$ | ||
|
||
```math | ||
x^2 | ||
``` | ||
|
||
## Underline | ||
|
||
__dunder__ | ||
|
||
## Spoiler | ||
|
||
This is ||secret|| | ||
|
||
## Code | ||
|
||
```python | ||
import antigravity | ||
|
@@ -38,3 +199,7 @@ fn main() { | |
This post specifies `FrontMatter` on its header, so `title`, `slug`, `date` and tags are taken from there. | ||
|
||
Bye! | ||
|
||
|
||
[^1]: My reference. | ||
[1]: <https://en.wikipedia.org/wiki/Hobbit#Lifestyle> "Hobbit lifestyles" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
check: | ||
cargo fmt -- --check | ||
cargo clippy -- -W clippy::pedantic | ||
|
||
fmt: | ||
cargo fmt | ||
|
||
fix: | ||
cargo clippy --fix -- -W clippy::pedantic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters