🪛 markdown renderer

This commit is contained in:
RJ
2025-11-07 16:13:10 +02:00
parent d29853c07d
commit 651beb2de6
10 changed files with 667 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
---
title: "Getting Started with Next.js 15"
description: "Learn how to build modern web applications with Next.js 15 and TypeScript."
date: "2025-01-07"
excerpt: "Learn how to build modern web applications with Next.js 15 and TypeScript."
author: "John Doe"
category: "Tutorial"
tags: ["nextjs", "typescript", "tutorial"]
---

View File

@@ -0,0 +1,41 @@
---
title: "Articol Tehnic din Subdirector"
description: "Test pentru subdirectoare și organizare ierarhică"
date: "2025-01-10"
author: "Tech Writer"
category: "Tehnologie"
tags: ["nextjs", "react", "typescript"]
draft: false
---
# Articol Tehnic
Acesta este un articol stocat într-un subdirector pentru a testa funcționalitatea de organizare ierarhică.
## Next.js și React
Next.js este un framework React puternic care oferă:
- Server-side rendering (SSR)
- Static site generation (SSG)
- API routes
- File-based routing
## Exemplu de cod TypeScript
```typescript
interface User {
id: number;
name: string;
email: string;
}
async function fetchUser(id: number): Promise<User> {
const response = await fetch(`/api/users/${id}`);
return response.json();
}
```
## Concluzie
Subdirectoarele funcționează perfect pentru organizarea conținutului!

View File

@@ -0,0 +1,109 @@
---
title: "Test Complet Markdown"
description: "Un articol de test care demonstrează toate elementele markdown suportate"
date: "2025-01-15"
author: "Test Author"
category: "Tutorial"
tags: ["markdown", "test", "demo"]
image: "/images/test.jpg"
draft: false
---
# Heading 1
Acesta este un paragraf normal cu **text bold** și *text italic*. Putem combina ***bold și italic***.
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
## Liste
### Listă neordonată
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
### Listă ordonată
1. Primul item
2. Al doilea item
3. Al treilea item
## Cod
Cod inline: `const x = 42;`
Bloc de cod JavaScript:
```javascript
function greet(name) {
console.log(`Hello, ${name}!`);
return true;
}
greet("World");
```
Bloc de cod Python:
```python
def calculate_sum(a, b):
"""Calculate sum of two numbers"""
return a + b
result = calculate_sum(5, 10)
print(f"Result: {result}")
```
## Blockquote
> Acesta este un blockquote.
> Poate avea multiple linii.
>
> Și paragrafe separate.
## Link-uri
[Link intern](/blog/alt-articol)
[Link extern](https://example.com)
## Imagini
![Alt text pentru imagine](/images/sample.jpg)
## Tabele
| Coloana 1 | Coloana 2 | Coloana 3 |
|-----------|-----------|-----------|
| Celula 1 | Celula 2 | Celula 3 |
| Date 1 | Date 2 | Date 3 |
| Info 1 | Info 2 | Info 3 |
## Linie orizontală
---
## Task List (GFM)
- [x] Task completat
- [ ] Task incomplet
- [ ] Alt task
## Strikethrough
~~Text șters~~
## Concluzie
Acesta este sfârșitul articolului de test.