Skip to main content

v1.1 Features

Enhanced formatting, unicode support, and security improvements

Strikethrough Text

Add strikethrough formatting using the ~~text~~ syntax, perfect for showing price changes, edits, or crossed-out items.

Example:

@slide {
  title: "Q2 Pricing Update";
  
  - Premium Plan: ~~$99/month~~ **$79/month** (Limited time!)
  - ~~Legacy feature removed~~ New feature added
}

Renders as:

Premium Plan: $99/month $79/month (Limited time!)

Legacy feature removed New feature added

Unicode Escape Sequences

Use \uXXXX (4-digit hex) or \xXX (2-digit hex) to insert special characters like copyright symbols, checkmarks, and international characters.

Example:

@meta {
  title: "Product Launch \u2713";
  copyright: "\u00A9 2025 MyCompany";
  trademark: "MyProduct\u2122";
}

Common Unicode Characters:

  • \u00A9 → © (copyright)
  • \u2122 → ™ (trademark)
  • \u00AE → ® (registered)
  • \u2713 → ✓ (checkmark)
  • \u2717 → ✗ (cross mark)
  • \u2022 → • (bullet)
  • \xE9 → é (e acute)
  • \xF1 → ñ (n tilde)

💡 Pro Tip: The parser automatically uses the shortest escape sequence when serializing (e.g., \xA9 instead of \u00A9 for efficiency).

Enhanced Error Messages

Parser errors now include precise line and column numbers, making debugging 10x faster.

v1.0 Error (vague):

Error: Missing closing brace

v1.1 Error (precise):

Error: Missing closing } for block meta at 15:42

Extended HTML Rendering

HTML output now supports all content types including ordered lists, blockquotes, code blocks, images, and links.

Now Supported:

@doc {
  # Features

  1. Ordered lists work now
  2. With proper numbering
  3. In HTML output

  > Blockquotes are fully supported
  > Including multi-line quotes

  ```javascript
  // Code blocks with syntax highlighting
  console.log("Hello, World!");
  ```

  ![Images](https://example.com/image.png)
  [Links](https://example.com) work too!
}

Security Improvements

All HTML output is now properly escaped to prevent XSS (Cross-Site Scripting) attacks.

Malicious Input:

@meta {
  title: "<script>alert('xss')</script>";
}

Safe HTML Output:

&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;

🔒 Security: This protection is automatic and requires no configuration. All user input is sanitized before rendering to HTML.

Upgrade Guide

Install v1.1:

npm install -g omniscript-cli@1.1.0

100% Backward Compatible: All v1.0 documents work without modification.

What You Get:

  • ✅ Use ~~strikethrough~~ in your documents
  • ✅ Add unicode characters with \uXXXX
  • ✅ Better error messages automatically
  • ✅ Enhanced HTML rendering
  • ✅ XSS protection (no action needed)

Learn More