-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.sd
More file actions
77 lines (56 loc) · 1.71 KB
/
example.sd
File metadata and controls
77 lines (56 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// This is a comment
// Example Slashdown file to test syntax highlighting
/header .flex.justify-between #main-header
# Slashdown Syntax Example
[Get it on GitHub](https://github.com/nickisnoble/slashdown)
/ .container
/section #introduction
## What is Slashdown?
Slashdown combines **Markdown** with *HTML-like* tags for more structured documents.
- Easy to read
- Fast to write
- Powerful and flexible
/section #examples
## Examples
### Basic Tag
/div = This is a div with inline text
### Tag with Classes and IDs
/ #hero .bg-blue-500.text-white.p-4
# Welcome!
Click the button below to get started.
/button = Get Started
class="bg-white text-blue-500 px-4 py-2 rounded"
onclick="handleClick()"
### HTMX Example
/ #roll-result
/button = Roll Dice
hx-post="/api/roll?sides=6"
hx-trigger="click"
hx-target="#roll-result"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
### Code Fence
Here's some JavaScript code:
```javascript
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet('World');
```
And some HTML:
```html
<div class="container">
<h1>Hello World</h1>
</div>
```
/section #markdown-support
## Full Markdown Support
You can use all standard markdown features:
1. Ordered lists
2. With multiple items
3. Like this
**Bold text**, *italic text*, and `inline code`.
> Blockquotes work too!
[Links are supported](https://example.com)
/footer .mt-8.text-center
Made with ❤️ in Slashdown
/a href="https://miniware.team?ref=slashdown" target="_blank" = by Miniware