Table of Contents
- Heading 2
- Heading 3
- Heading 4
- Heading 5
- Components
- Paragraphs
- Emphasis
- Bold
- Italic
- List
- Ordered
- Unordered
- Nested
- Links
- Image
- Blockquote
- Code
- Inline
- Default
- Highlighting
- Block
- Default
- Highlighting
- Title and Line Numbers
- Word and Line Highlighting
- GitHub Markdown
- Autolink
- Strikethrough
- Tasks
- Footnotes
- Table
- KaTeX Math
- Diagrams
- Pie
- Graphviz
- Plot Function
- Pintora
- Footnotes
Hello World and Markdown Test
Hello world.
Heading 2
Heading 3
Heading 4
Heading 5
Components
Paragraphs
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. N ullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Aenean ornare neque sed facilisis lobortis. Sed posuere mattis condimentum. Vestibulum condimentum velit metus, sed pulvinar neque dictum quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam erat volutpat. Donec convallis volutpat ipsum, eu placerat magna vestibulum sed. M aecenas gravida nibh quam, id ornare orci auctor eget. Etiam posuere ante ac nisl porta convallis. Proin viverra, metus sed auctor vestibulum, tellus ipsum gravida velit, vel consectetur augue ligula nec sapien. Morbi tristique dignissim tempus.
Emphasis
Bold
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornareac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Italic
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
List
Ordered
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
Unordered
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
Nested
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
Links
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Image
Blockquote
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
Code
Code highlighting using https://github.com/atomiks/rehype-pretty-code.
Inline
Default
Wrap text inside backtick like `function(num: number){ return (num & 0x1) === 0 }`
will render function(num: number){ return (num & 0x1) === 0 }
.
Highlighting
Set language using `...{:lang}`
at the end will highlight the output, something like this function(num: number){ return (num & 0x1) === 0 }
.
Block
Default
No language after ```
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris elementum ipsum nibh, ac bibendum turpis consectetur eu. Ut cursus dapibus ante, eget dignissim libero tristique vel. Suspendisse potenti. Phasellus a dui eget nulla varius dapibus. Mauris et convallis quam. Sed convallis sodales est. Cras et accumsan justo. Morbi venenatis accumsan sem, ac imperdiet felis vestibulum non. Maecenas volutpat sapien metus.
Highlighting
Set language after ```
, like ```python
.
def magnitude(a: Vec2D) -> float:
"""
Get vector magnitude.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris elementum ipsum nibh, ac bibendum turpis consectetur eu. Ut cursus dapibus ante, eget dignissim libero tristique vel. Suspendisse potenti. Phasellus a dui eget nulla varius dapibus. Mauris et convallis quam. Sed convallis sodales est. Cras et accumsan justo. Morbi venenatis accumsan sem, ac imperdiet felis vestibulum non. Maecenas volutpat sapien metus.
"""
return math.sqrt(pow(a.x, 2) + pow(a.y, 2)) # inline comment
Title and Line Numbers
title="something"
to add title and showLineNumbers
to add line numbers, set number start with showLineNumbers{n}
.
fn even(num: i32) -> bool {
return (num & 0x1) == 0;
}
Word and Line Highlighting
/word/
to highlight words and {n,n-n}
to highlight lines.
class FizzBuzz {
public static void main(String[] args) {
for (int i = 1; i <= 100; i++) {
String r = "";
Boolean fizz = i % 3 == 0;
Boolean buzz = i % 5 == 0;
if(fizz){
r += "fizz";
}
if(buzz){
r += "buzz";
}
System.out.println((r == "") ? i : r);
}
}
}
GitHub Markdown
GitHub flavour markdown support by default in @astro/mdx
.
Autolink
https://wikipedia.org, Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.
Strikethrough
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec dolor at neque tincidunt mattis. Mauris ex libero, elementum a tempor vitae, ornare ac elit. Nullam nulla tortor, iaculis sit amet sagittis in, cursus sit amet nunc.
Tasks
- foo
- bar
- nested 0
- nested 1
- nested 2
- nested 3
- fizz
- nested 0
- nested 1
- nested 2
- buzz
Footnotes
Here is a simple footnote1. With some additional text after it.
Here is a simple footnote2. With some additional text after it.
Here is a simple footnote3. With some additional text after it.
Table
Header 1 | Header 2 | Header 3 |
---|---|---|
Text | Text | Text |
Text | Text | Text |
Text | Text | Text |
Text | Text | Text |
KaTeX Math
Dot product and .
Rotate 2D vector.
Derivative.