ezofox on Nostr: Markdown is a simple language where you can type something in plaintext but add ...
Markdown is a simple language where you can type something in plaintext but add formatting. Like making a a word bold, italic, adding a hyperlink to a word, adding headings, quotes, formatting code that someone can copy and paste, add an image with caption and alternate text, create a tabular grid with textual data, add unordered list (bullet points) and ordered list (numberical points).. etc
For example:
- Adding a headings are usually added by typing the following `# Heading 1` for main content/title, `# Heading 2` for sub-title under heading 1, `# Heading 3` for sub-sub title under heading 2. This should output as:
# Heading 1
## Heading 2
### Heading 3
- Making a text bold add two asterisk begnning and end of text `**This is a bold text**` or two underscores beggining and end of text `__This is also bold__` should output as:
**This is a bold text**
__This is also bold__
- Italic text is with one asterisk or underscrore beginning and end of the text `*This is in italics*`
*This is in italics*
- Adding a hyperlink to a text `[click me](
http://google.com)` should output as:
[click me](
http://google.com)
- Block of code to retain syntax and display to copy/paste. You add ``` before and after the code:
```
let message = 'Hello world';
alert(message);
```
Now since Nostr clients are in their initial development phases, they may or may not support markdown at all or may support some of it and some of it may break. Ideally I think clients should support it.
Published at
2023-01-26 06:38:53Event JSON
{
"id": "35719438be53b3f9aa9d3ea0d29b84f80e67a2fd2fb2ebec4d5b70005c2f0561",
"pubkey": "d4843f4c280abba3d43d84ed7924b2567d7c166f5e72985b9f06d355601b5d78",
"created_at": 1674715133,
"kind": 1,
"tags": [
[
"e",
"c30a972ff52138984c31b2792f8bbf323bfc09dc614c6cd195290de55e20ed48",
"",
"root"
],
[
"e",
"678361c314708a33e921cc36587fe9a0a5258b3689c414b240f8eb41ac77c9e6",
"",
"reply"
],
[
"p",
"0abb589750cfdf3ca88a62d722263f5082787fd8c19a8372cb27967db8ab42fb"
]
],
"content": "Markdown is a simple language where you can type something in plaintext but add formatting. Like making a a word bold, italic, adding a hyperlink to a word, adding headings, quotes, formatting code that someone can copy and paste, add an image with caption and alternate text, create a tabular grid with textual data, add unordered list (bullet points) and ordered list (numberical points).. etc\n\nFor example: \n\n- Adding a headings are usually added by typing the following `# Heading 1` for main content/title, `# Heading 2` for sub-title under heading 1, `# Heading 3` for sub-sub title under heading 2. This should output as:\n\n # Heading 1\n ## Heading 2\n ### Heading 3\n\n- Making a text bold add two asterisk begnning and end of text `**This is a bold text**` or two underscores beggining and end of text `__This is also bold__` should output as:\n\n **This is a bold text**\n \n __This is also bold__\n\n- Italic text is with one asterisk or underscrore beginning and end of the text `*This is in italics*`\n\n *This is in italics*\n\n- Adding a hyperlink to a text `[click me](http://google.com)` should output as:\n\n [click me](http://google.com)\n \n- Block of code to retain syntax and display to copy/paste. You add ``` before and after the code:\n\n ```\n let message = 'Hello world';\n alert(message);\n ```\n\nNow since Nostr clients are in their initial development phases, they may or may not support markdown at all or may support some of it and some of it may break. Ideally I think clients should support it. \n",
"sig": "b8f7800f7c7d92182b50b410daffced46835b8f16e3b7ebfcc6a849d8134b4d36e3b3d874e26a4ed637e191e722d39a5f78e10b399087c4adddd85b55929c5fc"
}