Trying to figure out how to create nice articles here. I love using #markdown.
Looking at one post, it looks very rendered from markdown. Looking at its raw data, sure enough, it has markdown headings, links and other things.
OK, so I created a test post with markdown. It then displays it, but as all literal, no conversion. Raw data looks like the article, all my markdown is in the content.
So, how do you use markdown to create a well formatted post?
?
erikhigher@iris.to
npub1wjke...xp6u
Notes (13)
Does markdown work in posts? Let's find out.
---
# Markdown Feature Showcase
## 1. Headings
# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading
---
## 2. Text Styles
Regular text, with **bold**, *italic*, and ***bold italic***.
You can also use __bold__ and _italic_.
Strikethrough: ~~this text is crossed out~~.
Superscript: X^2^ and subscript: H~2~O (some tools support this).
---
## 3. Lists
### Unordered
- Item A
- Item B
- Nested item B.1
- Nested item B.2
- Item C
### Ordered
1. First
2. Second
3. Third
1. Third-A
2. Third-B
### Task List
- [ ] Unchecked task
- [x] Checked task
- [ ] Another unchecked task
---
## 4. Links & Images
Inline link: [OpenAI](https://openai.com)
Reference-style link: [Search Engine][search]
[search]: https://www.google.com "Google Search"
Autolink: <https://example.com>
Image (if supported):

---
## 5. Code
Inline code: `console.log("hello");`
### Indented Code Block
// Indented code block
function greet(name) {
return "Hello, " + name + "!";
}
### Fenced Code Block (using ~~~)
~~~js
// Fenced code block with language hint
const nums = [1, 2, 3];
console.log(nums.map(n => n * 2));
~~~
---
## 6. Blockquotes
> This is a blockquote.
>
> It can span multiple lines.
> Nested blockquote:
> > Inner level
---
## 7. Tables
| Column A | Column B | Column C |
|---------:|:--------:|---------|
| 1 | middle | left |
| 2 | text | more |
| 3 | here | data |
Alignment: right, center, left.
---
## 8. Horizontal Rules
---
***
___
---
## 9. Footnotes
Here is a sentence with a footnote reference.[^1]
Here is another reference in the same text.[^another]
[^1]: This is the first footnote.
[^another]: This is another footnote definition.
---
## 10. Definition List (extended Markdown)
Term 1
: Definition for term 1.
Term 2
: First line of definition.
: Second line of definition.
---
## 11. Inline HTML
<div style="border:1px solid; padding:0.5em;">
This is an inline HTML block. Some renderers will show this box; others will just show the HTML source.
</div>
---
## 12. Math (if supported)
Inline math: $E = mc^2$
Block math:
$$
\int_{0}^{\pi} \sin(x)\,dx = 2
$$
---
## 13. Miscellaneous
Emoji: 😄 🎉 ✅
Escaped characters: \*not italic\* and \_not italic\_.
End of test document.
I wonder if iris supports markdown. Let's see.
# Markdown Feature Showcase
Paste this into any Markdown-capable tool to see what it supports.
---
## 1. Headings
# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading
---
## 2. Text Styles
Regular text, with **bold**, *italic*, and ***bold italic***.
You can also use __bold__ and _italic_.
Strikethrough: ~~this text is crossed out~~.
Superscript: X^2^ and subscript: H~2~O (some tools support this).
---
## 3. Lists
### Unordered
- Item A
- Item B
- Nested item B.1
- Nested item B.2
- Item C
### Ordered
1. First
2. Second
3. Third
1. Third-A
2. Third-B
### Task List
- [ ] Unchecked task
- [x] Checked task
- [ ] Another unchecked task
---
## 4. Links & Images
Inline link: [OpenAI](https://openai.com)
Reference-style link: [Search Engine][search]
[search]: https://www.google.com "Google Search"
Autolink: <https://example.com>
Image (if supported):

---
## 5. Code
Inline code: `console.log("hello");`
### Indented Code Block
// Indented code block
function greet(name) {
return "Hello, " + name + "!";
}
### Fenced Code Block (using ~~~)
~~~js
// Fenced code block with language hint
const nums = [1, 2, 3];
console.log(nums.map(n => n * 2));
~~~
---
## 6. Blockquotes
> This is a blockquote.
>
> It can span multiple lines.
> Nested blockquote:
> > Inner level
---
## 7. Tables
| Column A | Column B | Column C |
|---------:|:--------:|---------|
| 1 | middle | left |
| 2 | text | more |
| 3 | here | data |
Alignment: right, center, left.
---
## 8. Horizontal Rules
---
***
___
---
## 9. Footnotes
Here is a sentence with a footnote reference.[^1]
Here is another reference in the same text.[^another]
[^1]: This is the first footnote.
[^another]: This is another footnote definition.
---
## 10. Definition List (extended Markdown)
Term 1
: Definition for term 1.
Term 2
: First line of definition.
: Second line of definition.
---
## 11. Inline HTML
<div style="border:1px solid; padding:0.5em;">
This is an inline HTML block. Some renderers will show this box; others will just show the HTML source.
</div>
---
## 12. Math (if supported)
Inline math: $E = mc^2$
Block math:
$$
\int_{0}^{\pi} \sin(x)\,dx = 2
$$
---
## 13. Miscellaneous
Emoji: 😄 🎉 ✅
Escaped characters: \*not italic\* and \_not italic\_.
End of test document.
Beer, beer, and more #beer!
What app can I use to connect to Nostr on F-Droid? How come I can't find #iris on F-Droid, @Iris ?
What's your favorite #vape box?
Improving life is about developing new habits. Harvesting and planting your own #seeds is a nice step towards true freedom. Lettuce, green onions and kale are regulars now.
#[0] Running Gossip client. How do I know what write relays I used on iris.to so I can choose the right ones on Gossip?
How come I'm logged in (with passphrase and correct private key) but see no feed or people?
JUST IN: Washington Passes Bill Allowing Children to Legally Be Taken From Parents if Parents Don't Consent to Gender Transition
https://trendingpoliticsnews.com/just-in-washington-passes-bill-allowing-children-to-legally-be-taken-from-parents-if-parents-dont-consent-to-gender-transition-mace/
#news #persecution #y2023 #washington #usa
JUST IN - No good evidence yet that proves COVID came from animals, says former Chinese CDC head.
https://www.disclose.tv/id/100188/
#news #covid
#[0] What is it like being an American living in New Zealand today? Keep hearing so much bad about tyrannical corruption in government there, like the new czar being worse then the previous czar. My heart goes out to the people of New Zealand.
Hoping #[0] drops a bombshell here first.
I love #truth #technology #techno #nature , beautiful people and 10,000 other things... like life. #introduction