Headings
This is an H1 heading
This is an H2 heading
This is an H3 heading
This is an H4 heading
This is an H5 heading
This is an H6 heading
This is a paragraph.
These are some bold words.
These are some italic words.
These are some ~~strikethrough~~ words.
These are some links.
These are some links with a title.
Code
You can use inline code
like this.
You can also use block code
like this:
Typescript
const x = 1;
Python
print("Hello, World!")
JavaScript
console.log("Hello, World!");
JSON
{
"name": "John",
"age": 30
}
Diff
You can highlight changes in code using diff syntax:
- This line was removed
+ This line was added
This line was unchanged
Diff with language highlighting
You can combine diff with language syntax highlighting:
- const greeting = "Hello";
+ const greeting = "Hello World";
console.log(greeting);
Or alternatively:
- function oldFunction() {
- return "This is the old implementation";
- }
+ function newFunction() {
+ return "This is the new implementation";
+ }
Diff with PHP (as requested)
- $variable = "Hello";
+ $variable = "Hello World";
echo $variable;
Custom Components
Badges
This is a badge
This is a badge
This is a badge
Mermaid Diagrams
Mermaid diagrams can be added using the <Mermaid>
component: