-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv1.1-new-features.osf
More file actions
155 lines (108 loc) ยท 3.61 KB
/
v1.1-new-features.osf
File metadata and controls
155 lines (108 loc) ยท 3.61 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// File: getting-started/v1.1-new-features.osf
// What: Showcase all new v1.1 formatting features
// Why: Help users discover strikethrough, ordered lists, blockquotes, code blocks
// RELEVANT FILES: ../README.md, parser README
@meta {
title: "OmniScript v1.1 - New Features Showcase";
author: "OmniScript Team";
date: "2025-01-16";
version: "1.1";
}
@doc {
# Welcome to OmniScript v1.1!
This document showcases all the **new formatting capabilities** added in version 1.1.
## What's New in v1.1
We've added powerful new formatting options while maintaining **100% backward compatibility** with v1.0.
}
@slide {
title: "โจ New Text Formatting";
Text styling now includes strikethrough:
- **Bold text** for emphasis
- *Italic text* for subtlety
- __Underlined text__ for highlights
- ~~Strikethrough text~~ for deletions
> Perfect for showing price changes, corrections, and revisions!
}
@slide {
title: "๐ Ordered Lists";
Create numbered lists with automatic sequencing:
1. First step - Plan your document
2. Second step - Write in OSF format
3. Third step - Export to your target format
4. Fourth step - ~~Manually format~~ Enjoy automatic formatting!
> Ordered lists make instructions crystal clear.
}
@slide {
title: "๐ฌ Blockquotes";
Emphasize important information with blockquotes:
> "OmniScript has transformed how we handle documentation.
> The new v1.1 features make it even better!"
> โ Sarah Chen, Technical Writer
Perfect for:
- Customer testimonials
- Important warnings
- Featured quotes
- Key takeaways
}
@slide {
title: "๐ป Code Blocks";
Display code with proper formatting and syntax highlighting:
```typescript
import { parse, serialize } from 'omniscript-parser';
const doc = parse(osfContent);
const output = serialize(doc);
```
Supports all major languages with preserved indentation!
}
@slide {
title: "๐ฏ Real-World Example";
## Product Pricing Updates
Our pricing has been optimized:
1. ~~Starter Plan: $29/month~~ **Now $19/month**
2. ~~Pro Plan: $99/month~~ **Now $79/month**
3. Enterprise: Contact sales *(no change)*
> "Best value in the market!" - Industry Analyst
Implementation code:
```javascript
const pricing = {
starter: 19, // was 29
pro: 79 // was 99
};
```
}
@slide {
title: "๐ Security Improvements";
v1.1 also includes important security enhancements:
- โ
HTML XSS prevention (all output sanitized)
- โ
Unterminated string detection
- โ
Enhanced input validation
Your documents are safer than ever!
}
@doc {
## Unicode Support
v1.1 adds full unicode escape sequence support:
- Checkmarks: โ โ โ โ
- Arrows: โ โ โ โ
- Symbols: ยฉ ยฎ โข โฌ
- Emoji: ๐ ๐ โจ ๐
All these characters serialize correctly and maintain fidelity through parse/serialize cycles.
## Position Tracking
Error messages now pinpoint exact locations:
```
Error: Missing closing } for block meta at 15:42
Error: Expected identifier starting with a letter at 8:5
Error: Invalid number format at 12:18
```
Makes debugging **10x faster**!
## Try It Yourself
Use this document to test all v1.1 features:
```bash
# Render to HTML with new formatting
osf render v1.1-new-features.osf --output showcase.html
# Export to Markdown with preserved formatting
osf export v1.1-new-features.osf --target md --output showcase.md
# Generate PDF with all features
osf render v1.1-new-features.osf --format pdf --output showcase.pdf
```
Happy documenting with OmniScript v1.1! ๐
}