Files
lit.ruv.wtf/website/data/blog/markdown-test.md
Max Litruv Boonzaayer 40fd8e8e42 feat: Add blog post functionality with Markdown support
- Introduced BlogPostNode to render blog posts with metadata and content.
- Updated graph.json to include new blog post nodes.
- Enhanced MarkdownRenderer to support code block options for max height.
- Added CSS styles for improved code block scrolling and syntax highlighting.
- Created example blog posts: "Markdown Formatting Test", "Welcome to My Blog", and "Building Interactive Node Graphs".
- Implemented dynamic loading of blog data from blogs.json.
- Updated WorkspaceNavigator to allow smooth panning over blog nodes.
2026-04-19 09:09:53 +10:00

126 lines
2.3 KiB
Markdown

---
title: Markdown Formatting Test
date: 2026-04-20
author: Test Author
tags: test, formatting, markdown
---
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
## Text Formatting
This is **bold text** and this is *italic text* and this is ***bold italic text***.
Here's some `inline code` in a sentence.
## Links
Here's a [regular link](https://example.com) and here's a [YouTube link](https://youtube.com/watch?v=test).
## Lists
Unordered list:
- First item
- Second item
- Third item
Ordered list:
1. First step
2. Second step
3. Third step
## Code Blocks
Standard JavaScript:
```javascript
const hello = "world";
console.log(hello);
function test() {
return true;
}
```
Python with syntax highlighting:
```python
def hello_world():
print("Hello, World!")
return True
```
Code with max height (200px):
```javascript {maxHeight: 200}
// This is a long code block that will scroll
const data = [1, 2, 3, 4, 5];
function processData(arr) {
return arr.map(x => x * 2);
}
console.log(processData(data));
// Adding more lines to demonstrate scrolling
for (let i = 0; i < 10; i++) {
console.log(`Iteration ${i}`);
}
// Even more content
const obj = {
name: "Test",
value: 42,
nested: {
deep: true
}
};
```
## Blockquotes
> This is a blockquote.
> It can span multiple lines.
> And continues here.
## Horizontal Rule
---
## Images
![Test Image](data/blog/media/test.png)
## Mixed Content
You can mix **bold**, *italic*, and `code` in the same paragraph. Here's a [link with **bold** text](https://example.com) too.
### Nested Lists
- Top level item
- Another top level
- Nested item (if supported)
- Another nested
1. Numbered item
2. Another numbered
- Mixed with bullets
- More bullets
## Special Characters
Testing special chars: < > & " '
## Long Paragraph
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.