Home
Alt + H
Logo Logo

Hello World

Hello World

Tags 16 min read
Post - Hello World

Summary

Show content

Mention

Code:

1
Shoutout to :mention[lucjosin]{url="https://github.com/lucjosin" img="https://github.com/lucjosin.png"} for their awesome work on this!
2
3
Vue.js is a progressive JavaScript framework for building user interfaces. Learn more at :mention[Vue.js]{url="https://vuejs.org/"}.

Preview:


Shoutout to lucjosin lucjosin for their awesome work on this!

Vue.js is a progressive JavaScript framework for building user interfaces. Learn more at Vue.js Vue.js .


KBD

Code:

1
1. To :highlight[open]{bg="green" color="#ededed"} a new tab, press <kbd>Ctrl</kbd> + <kbd>T</kbd>.
2
2. To :highlight[close]{bg="red" color="#ededed"} the current tab, press <kbd>Ctrl</kbd> + <kbd>W</kbd>.
3
3. To :highlight[refresh]{bg="orange" color="#ededed"} the page, press <kbd>F5</kbd> or <kbd>Ctrl</kbd> + <kbd>R</kbd>.
4
4. To :highlight[open]{bg="green" color="#ededed"} the developer console, press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd>.

Preview:


  1. To open a new tab, press Ctrl + T.
  2. To close the current tab, press Ctrl + W.
  3. To refresh the page, press F5 or Ctrl + R.
  4. To open the developer console, press Ctrl + Shift + I.

Tabs

Code:

1
````codeset tabs=
2
```js label=index.js
3
console.log("Hello World");
4
```
5
:-:
6
```go label=main.go
7
package main
8
9
import (
10
"fmt"
11
)
12
13
func main () {
14
fmt.Println("Hello World")
15
}
16
```
17
:-:
18
```java label=Application.java
19
public class Application {
20
21
public static void main(String[] args) {
22
System.out.println("Hello World");
23
}
24
}
25
```
26
````

Preview:


1
console.log("Hello World");
1
package main
2
3
import (
4
"fmt"
5
)
6
7
func main () {
8
fmt.Println("Hello World")
9
}
1
public class Application {
2
3
public static void main(String[] args) {
4
System.out.println("Hello World");
5
}
6
}

References

Repository

Code:

1
::github{repo="LucJosin/lucasjosino.com"}

Preview:


LucJosin
/
lucasjosino.com
Public archive
Waiting for api.github.com...
00K
0K
MIT
0
Waiting...

Post

Code:

1
https://www.lucasjosino.com/blog/how-to-hash-class-names-in-astro-using-astro-rename-integration/

Preview:



Code highlight

Example

Code:

1
Lorem ipsum dolor sit amet. Ut enim ad minim :highlight[gradient]{effect="gradient"}, quis nisi ut aliquip ex ea :highlight[glow]{effect="glow"} consequat. Duis aute irure dolor in :highlight[custom]{color="white" bg="#f0ad4e"} in voluptate velit esse :highlight[underline-slim]{effect="underline-slim"} dolore eu fugiat nulla pariatur. :highlight[Custom striped animate: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]{effect="striped animate" style="font-weight: bold; color: #e75480;"}
2
3
Lorem ipsum dolor sit amet, :highlight[marker]{effect="marker"} adipiscing elit, sed do eiusmod :highlight[underline animate]{effect="underline animate"} et dolore magna aliqua. Ullamco laboris nisi ut aliquip ex ea :highlight[striped animate]{effect="striped animate" style="--bgColor1: #121212; --bgColor2: #505050; color: white;"} consequat. Duis aute irure :highlight[wavy]{effect="wavy"} in reprehenderit in :highlight[sketch]{effect="sketch" style="--color: rgb(66 218 218 / 1);"} velit esse cillum dolore eu fugiat nulla pariatur.

Preview:


FAWOIJFD adawd awd

Lorem ipsum dolor sit amet. Ut enim ad minim gradient, quis nisi ut aliquip ex ea glow consequat. Duis aute irure dolor in custom in voluptate velit esse underline-slim dolore eu fugiat nulla pariatur. Custom striped animate: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, marker adipiscing elit, sed do eiusmod underline animate et dolore magna aliqua. Ullamco laboris nisi ut aliquip ex ea striped animate consequat. Duis aute irure wavy in reprehenderit in sketch velit esse cillum dolore eu fugiat nulla pariatur.


Footnotes

Code:

1
`remark-numbered-footnote-labels` is a quality plugin[^quality]!
2
3
[^quality]: If you do not find it so, please file a GitHub issue or pull request!

Preview:


remark-numbered-footnote-labels is a quality plugin1!


Alerts

Info

Code:

1
:::alert{type="info"}
2
Lorem ipsum dolor sit amet, `consectetur adipiscing elit`. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. [Quisque vulputate eros id turpis volutpat bibendum.](#table-of-contents)
3
:::

Preview:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. Quisque vulputate eros id turpis volutpat bibendum.


Tip

Code:

1
:::alert{type="tip"}
2
Lorem ipsum dolor sit amet, `consectetur adipiscing elit`. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. [Quisque vulputate eros id turpis volutpat bibendum.](#table-of-contents)
3
:::

Preview:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. Quisque vulputate eros id turpis volutpat bibendum.


Success

Code:

1
:::alert{type="success"}
2
Lorem ipsum dolor sit amet, `consectetur adipiscing elit`. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. [Quisque vulputate eros id turpis volutpat bibendum.](#table-of-contents)
3
:::

Preview:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. Quisque vulputate eros id turpis volutpat bibendum.


Warning

Code:

1
:::alert{type="warning"}
2
Lorem ipsum dolor sit amet, `consectetur adipiscing elit`. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. [Quisque vulputate eros id turpis volutpat bibendum.](#table-of-contents)
3
:::

Preview:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. Quisque vulputate eros id turpis volutpat bibendum.


Danger

Code:

1
:::alert{type="danger"}
2
Lorem ipsum dolor sit amet, `consectetur adipiscing elit`. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. [Quisque vulputate eros id turpis volutpat bibendum.](#table-of-contents)
3
:::

Preview:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in massa ipsum. Morbi neque sapien, ornare fermentum tincidunt pulvinar, varius eu quam. Praesent consectetur pellentesque venenatis. Aliquam erat volutpat. Quisque vulputate eros id turpis volutpat bibendum.


Block Elements

Paragraphs and Line Breaks

Paragraphs

HTML Tag: <p>

One or more blank lines. (A blank line is a line containing nothing but spaces or tabs is considered blank.)

Code:

1
This will be
2
inline.
3
4
This is second paragraph.

Preview:


This will be inline.

This is second paragraph.


Line Breaks

HTML Tag: <br />

End a line with two or more spaces.

Code:

1
This will be not
2
inline.

Preview:


This will be not
inline.


Blockquotes

HTML Tag: <blockquote>

Markdown uses email-style > characters for blockquoting. It looks best if you hard wrap the text and put a > before every line.

Code:

1
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
2
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
3
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
4
>
5
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
6
> id sem consectetuer libero luctus adipiscing.

Preview:


This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.


Markdown allows you to be lazy and only put the > before the first line of a hard-wrapped paragraph.

Code:

1
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
2
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
3
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
4
5
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
6
id sem consectetuer libero luctus adipiscing.

Preview:


This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.


Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by adding additional levels of >.

Code:

1
> This is the first level of quoting.
2
>
3
> > This is nested blockquote.
4
>
5
> Back to the first level.

Preview:


This is the first level of quoting.

This is nested blockquote.

Back to the first level.


Blockquotes can contain other Markdown elements, including headers, lists, and code blocks.

Code:

1
> ## This is a header.
2
>
3
> 1. This is the first list item.
4
> 2. This is the second list item.
5
>
6
> Here's some example code:
7
>
8
> return shell_exec("echo $input | $markdown_script");

Preview:


This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here’s some example code:

1
return shell_exec("echo $input | $markdown_script");

Lists

Markdown supports ordered (numbered) and unordered (bulleted) lists.

Unordered

HTML Tag: <ul>

Unordered lists use asterisks (*), pluses (+), and hyphens (-).

Code:

1
* Red
2
* Green
3
* Blue

Preview:


  • Red
  • Green
  • Blue

is equivalent to:

Code:

1
+ Red
2
+ Green
3
+ Blue

and:

Code:

1
- Red
2
- Green
3
- Blue

Ordered

HTML Tag: <ol>

Ordered lists use numbers followed by periods:

Code:

1
1. Bird
2
2. McHale
3
3. Parish

Preview:


  1. Bird
  2. McHale
  3. Parish

It’s possible to trigger an ordered list by accident, by writing something like this:

Code:

1
1986. What a great season.

Preview:


  1. What a great season.

You can backslash-escape (\) the period:

Code:

1
1986\. What a great season.

Preview:


1986. What a great season.


Indented

Blockquote

To put a blockquote within a list item, the blockquote’s > delimiters need to be indented:

Code:

1
* A list item with a blockquote:
2
3
> This is a blockquote
4
> inside a list item.

Preview:


  • A list item with a blockquote:

    This is a blockquote inside a list item.


Code Block

To put a code block within a list item, the code block needs to be indented twice — 8 spaces or two tabs:

Code:

1
* A list item with a code block:
2
3
<code goes here>

Preview:


  • A list item with a code block:

    1
    <code goes here>

Nested List

Code:

1
* A
2
* A1
3
* A2
4
* B
5
* C

Preview:


  • A
    • A1
    • A2
  • B
  • C

Code Blocks

HTML Tag: <pre>

Indent every line of the block by at least 4 spaces or 1 tab.

Code:

1
This is a normal paragraph:
2
3
This is a code block.

Preview:


This is a normal paragraph:

1
This is a code block.

A code block continues until it reaches a line that is not indented (or the end of the article).

Within a code block, ampersands (&) and angle brackets (< and >) are automatically converted into HTML entities.

Code:

1
<div class="footer">
2
&copy; 2004 Foo Corporation
3
</div>

Preview:


1
<div class="footer">
2
&copy; 2004 Foo Corporation
3
</div>

Following sections Fenced Code Blocks and Syntax Highlighting are extensions, you can use the other way to write the code block.

Fenced Code Blocks

Just wrap your code in ``` (as shown below) and you won’t need to indent it by four spaces.

Code:

1
Here's an example:
2
3
```
4
function test() {
5
console.log("notice the blank line before this function?");
6
}
7
```

Preview:


Here’s an example:

1
function test() {
2
console.log("notice the blank line before this function?");
3
}

Syntax Highlighting

In your fenced block, add an optional language identifier and we’ll run it through syntax highlighting (Support Languages).

Code:

1
```ruby
2
require 'redcarpet'
3
markdown = Redcarpet.new("Hello World!")
4
puts markdown.to_html
5
```

Preview:


1
require 'redcarpet'
2
markdown = Redcarpet.new("Hello World!")
3
puts markdown.to_html

Horizontal Rules

HTML Tag: <hr /> Places three or more hyphens (-), asterisks (*), or underscores (_) on a line by themselves. You may use spaces between the hyphens or asterisks.

Code:

1
* * *
2
***
3
*****
4
- - -
5
---------------------------------------
6
___

Preview:









Table

HTML Tag: <table>

It’s an extension.

Separates column by pipe (|) and header by dashes (-), and uses colon (:) for alignment.

The outer pipes (|) and alignment are optional. There are 3 delimiters each cell at least for separating header.

Code:

1
| Left | Center | Right |
2
| :--- | :----: | ----: |
3
| aaa | bbb | ccc |
4
| ddd | eee | fff |
5
6
| A | B |
7
| --- | --- |
8
| 123 | 456 |
9
10
| A | B |
11
| --- | --- |
12
| 12 | 45 |

Preview:


LeftCenterRight
aaabbbccc
dddeeefff
AB
123456
AB
1245

Span Elements

HTML Tag: <a>

Markdown supports two style of links: inline and reference.

Inline

Inline link format like this: [Link Text](URL "Title")

Title is optional.

Code:

1
This is [an example](http://example.com/ "Title") inline link.
2
3
[This link](http://example.net/) has no title attribute.

Preview:


This is an exampleinline link.

This linkhas no title attribute.


If you’re referring to a local resource on the same server, you can use relative paths:

Code:

1
See my [About](/about/) page for details.

Preview:


See my About page for details.


Reference

You could predefine link references. Format like this: [id]: URL "Title"

Title is also optional. And the you refer the link, format like this: [Link Text][id]

Code:

1
[id]: http://example.com/ "Optional Title Here"
2
This is [an example][id] reference-style link.

Preview:


This is an examplereference-style link.


That is:

  • Square brackets containing the link identifier (not case sensitive, optionally indented from the left margin using up to three spaces);
  • followed by a colon;
  • followed by one or more spaces (or tabs);
  • followed by the URL for the link;
  • The link URL may, optionally, be surrounded by angle brackets.
  • optionally followed by a title attribute for the link, enclosed in double or single quotes, or enclosed in parentheses.

The following three link definitions are equivalent:

Code:

1
[foo]: http://example.com/ "Optional Title Here"
2
[foo]: http://example.com/ 'Optional Title Here'
3
[foo]: http://example.com/ (Optional Title Here)
4
[foo]: <http://example.com/> "Optional Title Here"

Uses an empty set of square brackets, the link text itself is used as the name.

Code:

1
[Google]: http://google.com/
2
[Google][]

Preview:


Google


Emphasis

HTML Tags: <em>, <strong>

Markdown treats asterisks (*) and underscores (_) as indicators of emphasis. One delimiter will be <em>; *double delimiters will be <strong>.

Code:

1
*single asterisks*
2
3
_single underscores_
4
5
**double asterisks**
6
7
__double underscores__

Preview:


single asterisks

single underscores

double asterisks

double underscores


But if you surround an * or _ with spaces, it’ll be treated as a literal asterisk or underscore.

You can backslash escape it:

Code:

1
\*this text is surrounded by literal asterisks\*

Preview:


*this text is surrounded by literal asterisks*


Code

HTML Tag: <code>

Wraps it with backtick quotes (`).

Code:

1
Use the `printf()` function.

Preview:


Use the printf() function.


To include a literal backtick character within a code span, you can use multiple backticks as the opening and closing delimiters:

Code:

1
``There is a literal backtick (`) here.``

Preview:


There is a literal backtick (`) here.


The backtick delimiters surrounding a code span may include spaces — one after the opening, one before the closing. This allows you to place literal backtick characters at the beginning or end of a code span:

Code:

1
A single backtick in a code span: `` ` ``
2
3
A backtick-delimited string in a code span: `` `foo` ``

Preview:


A single backtick in a code span: `

A backtick-delimited string in a code span: `foo`


Images

HTML Tag: <img />

Markdown uses an image syntax that is intended to resemble the syntax for links, allowing for two styles: inline and reference.

Inline

Inline image syntax looks like this: ![Alt text](URL "Title")

Title is optional.

Code:

1
![Alt text](/static/default-og.png)
2
3
![Alt text](/static/default-og.png "Optional title")

Preview:


Alt text
Alt text - View image in a new tab

Alt text
Alt text - View image in a new tab


That is:

  • An exclamation mark: !;
  • followed by a set of square brackets, containing the alt attribute text for the image;
  • followed by a set of parentheses, containing the URL or path to the image, and an optional title attribute enclosed in double or single quotes.

Reference

Reference-style image syntax looks like this: ![Alt text][id]

Code:

1
[img id]: /static/default-og.png "Optional title attribute"
2
![Alt text][img id]

Preview:


Alt text


Strikethrough

HTML Tag: <del>

It’s an extension.

GFM adds syntax to strikethrough text.

Code:

1
~~Mistaken text.~~

Preview:


Mistaken text.


Miscellaneous

Markdown supports a shortcut style for creating “automatic” links for URLs and email addresses: simply surround the URL or email address with angle brackets.

Code:

1
<http://example.com/>
2
3
<address@example.com>

Preview:


address@example.com


GFM will autolink standard URLs.

Code:

1
https://github.com/emn178/markdown

Preview:



Backslash Escapes

Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown’s formatting syntax.

Code:

1
\*literal asterisks\*

Preview:


*literal asterisks*


Markdown provides backslash escapes for the following characters:

Code:

1
\ backslash
2
` backtick
3
* asterisk
4
_ underscore
5
{} curly braces
6
[] square brackets
7
() parentheses
8
# hash mark
9
+ plus sign
10
- minus sign (hyphen)
11
. dot
12
! exclamation mark

Preview:


\ backslash

` backtick * asterisk

_ underscore

{} curly braces

[] square brackets

() parentheses

# hash mark

+ plus sign

- minus sign (hyphen)

. dot

! exclamation mark


Inline HTML

For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.

Code:

1
This is a regular paragraph.
2
3
<table>
4
<tr>
5
<td>Foo</td>
6
</tr>
7
</table>
8
9
This is another regular paragraph.

Preview:


This is a regular paragraph.

Foo

This is another regular paragraph.


Note that Markdown formatting syntax is not processed within block-level HTML tags.

Unlike block-level HTML tags, Markdown syntax is processed within span-level tags.

Code:

1
<span>**Work**</span>
2
3
<div>
4
**No Work**
5
</div>

Preview:


Work

**No Work**

Footnotes

  1. If you do not find it so, please file a GitHub issue or pull request!

RSS
Tags
Source Code
Logo Logo
Lucas Josino
© 2025 • Built with Astro