Basic Examples
This section demonstrates basic SevenMark usage with simple, practical examples.
Text Formatting
sevenmark
Welcome to **SevenMark**! This is a *powerful* markup language with __many features__.
You can use ~~strikethrough~~ text, add ^^superscript^^ notation for math like E=mc^^2^^,
or use ,,subscript,, for chemical formulas like H,,2,,O.
/* This comment does not appear in the output. */text
Welcome to SevenMark! This is a powerful markup language with many features.
You can use strikethrough text, add superscript notation for math like E=mc²,
or use subscript for chemical formulas like H₂O.text
- **bold**: **text**
- *italic*: *text*
- __underline__: __text__
- ~~strikethrough~~: ~~text~~
- ^^superscript^^: ^^text^^
- ,,subscript,,: ,,text,,
- Comments: /* text */Lists
sevenmark
{{{#list #type="numeric"
[[**Groceries**]]
[[Milk]]
[[Bread]]
[[Eggs]]
[[Fruits]]
}}}sevenmark
{{{#list #type="alpha"
[[Review documentation]]
[[Write unit tests]]
[[Deploy to staging]]
[[Get approval from team]]
}}}sevenmark
{{{#list #type="roman" #upper
[[Planning Phase]]
[[Implementation Phase]]
[[Testing Phase]]
[[Deployment Phase]]
}}}text
Available list types:
- #type="numeric": Numbers (1, 2, 3...)
- #type="alpha": Lowercase letters (a, b, c...)
- #type="alpha" #upper: Uppercase letters (A, B, C...)
- #type="roman": Lowercase Roman numerals (i, ii, iii...)
- #type="roman" #upper: Uppercase Roman numerals (I, II, III...)Tables
sevenmark
{{{#table
[[[[Feature]] [[Basic Plan]] [[Pro Plan]]]]
[[[[Storage]] [[1GB]] [[100GB]]]]
[[[[Users]] [[1]] [[Unlimited]]]]
[[[[Support]] [[Email]] [[24/7 Phone]]]]
}}}sevenmark
{{{#table #wrapper-align="right" #style="width: 18rem; border-collapse: collapse"
[[[[**Feature**]] [[*Basic*]] [[*Pro*]]]]
[[[[Storage]] [[1GB]] [[100GB]]]]
[[[[Users]] [[1 user]] [[~~Unlimited~~ **Unlimited**]]]]
}}}text
Tables use nested brackets:
{{{#table
[[[[Row 1, Col 1]] [[Row 1, Col 2]]]]
[[[[Row 2, Col 1]] [[Row 2, Col 2]]]]
}}}
- Outer [[ ]]: Table row
- Inner [[ ]]: Table cell
- Can contain any SevenMark elementsCode
sevenmark
Use `console.log("Hello")` to output messages in JavaScript.
Run:
``` #lang="bash"
npm install
```sevenmark
``` #lang="python"
def greet(name):
return f"Hello, {name}!"
# Usage example
message = greet("SevenMark")
print(message)
```sevenmark
JavaScript:
``` #lang="javascript"
const greeting = (name) => `Hello, ${name}!`;
console.log(greeting("World"));
```
Rust:
``` #lang="rust"
fn main() {
println!("Hello, World!");
}
```text
Inline: `your_code_here`
Block:
``` #lang="language"
your_code_here
```
Supported languages:
- javascript, python, rust, go
- html, css, json, yaml
- bash, sql, and othersSimple Media
Image with Alternative Text
sevenmark
[[file:logo.png | Company Logo]]Link to Documentation
sevenmark
For more information, visit [[https://docs.example.com | our documentation]].Basic Quote
sevenmark
{{{#quote
"The best way to learn a new markup language is to start with simple examples
and gradually work your way up to more complex structures."
}}}Math Formula
Simple Math
sevenmark
The Pythagorean theorem: $a^2 + b^2 = c^2$Block Math
sevenmark
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$Horizontal Divider
sevenmark
Above the line
---
Below the line